[Issue 9213] New: [2.061 beta] Member access without this and __traits(compiles, ...)
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Dec 26 15:27:06 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9213
Summary: [2.061 beta] Member access without this and
__traits(compiles, ...)
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: regression
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: code at klickverbot.at
--- Comment #0 from David Nadlinger <code at klickverbot.at> 2012-12-26 15:27:05 PST ---
The following program prints "false" with DMD 2.060, but "true" with DMD 2.061:
---
class Foo {
int bar;
}
pragma(msg, __traits(compiles, { return Foo.bar; }));
---
In 2.061, we only emit a "need 'this' to access member bar" glue code error,
thus the wrong output.
--
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