[Issue 7486] New: dmd 2.057 lose const qualifier with ref
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Feb 12 07:30:58 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7486
Summary: dmd 2.057 lose const qualifier with ref
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: deadalnix at gmail.com
--- Comment #0 from deadalnix <deadalnix at gmail.com> 2012-02-12 07:30:56 PST ---
Sample code (this compile).
module dsfml.graphics.view;
struct Fail {
void foobar() const {
cppFoobar(this);
}
}
void cppFoobar(ref Fail fail) {}
void main() {
Fail f;
f.foobar();
}
This program should trigger an error because of constness issue. It doesn't .
tested with dmd 2.057 and gdc (4.7 - 2.057) as well.
--
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