http://d.puremagic.com/issues/show_bug.cgi?id=11258
Summary: Static field access problem Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Keywords: rejects-valid Severity: regression Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: bearophile_h...@eml.cc --- Comment #0 from bearophile_h...@eml.cc 2013-10-14 05:15:19 PDT --- struct Foo { static int spam = 1; } struct Bar { static assert(__traits(compiles, { auto x = Foo.spam; })); // line5 static void foo() { static assert(__traits(compiles, { auto x = Foo.spam; })); } } void main() {} With dmd 2.064beta this program gives: test.d(5): Error: static assert (__traits(compiles, () { auto x = Foo.spam; } )) is false In dmd 2.063 this used to work. (Additionally, I'd like those error messages to show less newlines). -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------