[Issue 6744] Missing AA symbol with enum
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jul 10 09:45:11 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=6744
Shahid <govellius at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |govellius at gmail.com
--- Comment #7 from Shahid <govellius at gmail.com> 2012-07-10 09:45:07 PDT ---
void main()
{
enum E { a=1, b=2 }
// Fail at link
// undefined reference to `_Dmain1E6__initZ'
E[ string ] fail1 = [ "a":E.a, "b":E.b ];
string[ E ] fail2 = [ E.a:"a", E.b:"b" ];
// Works
enum { c=3, d=4 }
auto works1 = [ "c":c , "d":d ];
auto works2 = [ c:"c", d:"d" ];
}
---
Bug does not happen if "enum E" is moved out of main to module scope.
--
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