[Issue 8534] New: mixed-in struct definition not forward referenceable
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Aug 10 13:26:02 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8534
Summary: mixed-in struct definition not forward referenceable
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: dmitry.olsh at gmail.com
--- Comment #0 from Dmitry Olshansky <dmitry.olsh at gmail.com> 2012-08-10 13:25:59 PDT ---
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
{
}
};
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list