[Issue 4768] New: Regression(1.056): wrong code with forward declaration of enum
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Aug 29 23:58:08 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4768
Summary: Regression(1.056): wrong code with forward declaration
of enum
Product: D
Version: D1
Platform: Other
OS/Version: Windows
Status: NEW
Keywords: wrong-code
Severity: regression
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: clugdbug at yahoo.com.au
--- Comment #0 from Don <clugdbug at yahoo.com.au> 2010-08-29 23:57:56 PDT ---
This is the D1 version of bug 4516.
Rejected as 'forward reference error' up to D1.053.
Worked correctly in 1.054 and 1.055. Wrong code in 1.056 and later.
Works if the definition of B is moved above A.
struct A { B b; }
enum B { Z = 2 }
void main()
{
A x;
assert(x.b == 2);
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list