Bug 6712 – .init wrong when multiple functions declare the same typedef

Status
RESOLVED
Resolution
WONTFIX
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
Other
OS
Windows
Creation time
2011-09-22T00:54:03Z
Last change time
2020-03-21T03:56:38Z
Keywords
wrong-code
Assigned to
No Owner
Creator
Don

Comments

Comment #0 by clugdbug — 2011-09-22T00:54:03Z
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
Comment #1 by bugzilla — 2012-01-21T00:19:31Z
Won't fix for D2, as typedef is deprecated.