Bug 12825 – Invalid "duplicated union initialization" error with initialized field in extern(C++) class

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-05-31T05:44:00Z
Last change time
2014-06-08T03:20:56Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
yebblies

Comments

Comment #0 by yebblies — 2014-05-31T05:44:23Z
extern(C++) class C { uint a = 0x12345678; } void main() { auto c = new C(); }
Comment #1 by k.hara.pg — 2014-06-08T01:35:16Z
Comment #2 by github-bugzilla — 2014-06-08T03:20:56Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/eda258730a12c8db8120e503aa756a5cfd537886 fix Issue 12825 - Invalid "duplicated union initialization" error with initialized field in extern(C++) class https://github.com/D-Programming-Language/dmd/commit/b9d2d2bb15f79bcd00488cda6521a1ac1b8d0689 Merge pull request #3645 from 9rnsr/fix12825 Issue 12825 - Invalid "duplicated union initialization" error with initialized field in extern(C++) class