[Issue 11258] New: Static field access problem
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Oct 14 05:15:20 PDT 2013
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: nobody at puremagic.com
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at 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: -------
More information about the Digitalmars-d-bugs
mailing list