Bug 1206 – Compiler hangs on this() after method in class that forward references struct
Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2007-05-01T00:11:00Z
Last change time
2014-02-16T15:23:18Z
Keywords
ice-on-valid-code
Assigned to
bugzilla
Creator
wbaxter
Comments
Comment #0 by wbaxter — 2007-05-01T00:11:20Z
Here's the minimal repro:
--
class TiXmlParsingData
{
void Stamp(){}
this() { }
TiXmlCursor cursor;
}
struct TiXmlCursor
{
}
---
Change just about anything there and it will compile. Key points seem to be:
1) struct must be forward referenced
2) constructor must be present
3) another method must be present
4) constructor must come *after* other method inside class.
This was extracted from the tinyxpath project on DSource.
Tested also against dmd 1.013, and dmd 1.010 with same results.