[Issue 7860] New: Constant fields of forward referenced structs break everything
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Apr 8 12:19:36 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7860
Summary: Constant fields of forward referenced structs break
everything
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: regression
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: siegelords_abode at yahoo.com
--- Comment #0 from siegelords_abode at yahoo.com 2012-04-08 12:20:17 PDT ---
This code used to compile fine with DMD 2.058 but is broken in the git version
of DMD:
struct A(T)
{
enum A!(T) test = A!(T)();
static if(true)
{
pragma(msg, "Not printed..."); // Not printed
enum A!(T) blah = A!(T)();
}
}
void main()
{
auto a = A!(char).blah; // Error: no property 'blah' for type 'A!(char)'
}
--
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