← Back to index
|
Original Bugzilla link
Bug 7486 – dmd 2.057 lose const qualifier with ref
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-02-12T07:30:00Z
Last change time
2012-02-12T09:17:10Z
Assigned to
nobody
Creator
deadalnix
Comments
Comment #0
by deadalnix — 2012-02-12T07:30:56Z
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.
Comment #1
by timon.gehr — 2012-02-12T08:02:07Z
Fixed in DMD 2.058head.
Comment #2
by yebblies — 2012-02-12T09:17:10Z
*** This issue has been marked as a duplicate of issue 5493 ***