[Issue 9341] New: Linker error with array literal populated by compile-time tuple
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jan 17 15:49:48 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9341
Summary: Linker error with array literal populated by
compile-time tuple
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: hsteoh at quickfur.ath.cx
--- Comment #0 from hsteoh at quickfur.ath.cx 2013-01-17 15:49:47 PST ---
Code:
import std.traits;
void main() {
enum E { First = 1, Second = 2, Third = 3 };
auto members = [ EnumMembers!E ];
}
Compiler output:
test.o:(.data._D16TypeInfo_Emain1E6__initZ+0x30): undefined reference to
`_Dmain1E6__initZ'
collect2: error: ld returned 1 exit status
--- errorlevel 1
Changing 'auto' to 'static' makes the linker error go away, for some odd
reason.
--
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