September 22, 2011 [Issue 6712] New: .init wrong when multiple functions declare the same typedef | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=6712 Summary: .init wrong when multiple functions declare the same typedef Product: D Version: D1 & D2 Platform: Other OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: clugdbug@yahoo.com.au --- Comment #0 from Don <clugdbug@yahoo.com.au> 2011-09-22 00:54:03 PDT --- Found when cleaning up the DMD test suite. void firsttypedef() { typedef int myint = 3; } void secondtypedef() { typedef int myint = 7; static assert(myint.init == 7); } test.d(9): Error: static assert (cast(myint)3 == 7) is false -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 21, 2012 [Issue 6712] .init wrong when multiple functions declare the same typedef | ||||
---|---|---|---|---|
| ||||
Posted in reply to Don | http://d.puremagic.com/issues/show_bug.cgi?id=6712 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bugzilla@digitalmars.com Version|D1 & D2 |D1 --- Comment #1 from Walter Bright <bugzilla@digitalmars.com> 2012-01-21 00:19:31 PST --- Won't fix for D2, as typedef is deprecated. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation