[Issue 8246] New: type tuple fields pollute the linker namespace
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jun 14 12:08:31 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8246
Summary: type tuple fields pollute the linker namespace
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: timon.gehr at gmx.ch
--- Comment #0 from timon.gehr at gmx.ch 2012-06-14 12:10:44 PDT ---
DMD 2.059:
template TypeTuple(T...){ alias T TypeTuple; }
TypeTuple!int x;
int _x_field_0;
static assert(x[0].mangleof != _x_field_0.mangleof); // fail
The static assertion should pass.
(if the assertion is commented out, the code generates a linker error.)
The compiler must use a reserved identifier, for example
__tuple_x_field_0 instead of _x_field_0
--
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