Bug 8534 – mixed-in struct definition not forward referenceable

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-08-10T13:25:59Z
Last change time
2019-10-10T11:38:59Z
Assigned to
No Owner
Creator
Dmitry Olshansky

Comments

Comment #0 by dmitry.olsh — 2012-08-10T13:25:59Z
Test case: SimpleCaseEntry[] simpleTable; mixin(mixedCCEntry); enum mixedCCEntry = q{ struct SimpleCaseEntry { } }; dmd 2.060 outputs: forward.d(2): Error: undefined identifier SimpleCaseEntry Instead it should just work like this version(this is a workaround): //case folding mapping mixin(mixedCCEntry); SimpleCaseEntry[] simpleTable; enum mixedCCEntry = q{ struct SimpleCaseEntry { } };
Comment #1 by razvan.nitu1305 — 2019-10-10T11:38:59Z
This has been fixed in master.