[Issue 8888] enums with initializers inside functions cause linker error

2013-01-10 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=


Andrej Mitrovic  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||DUPLICATE


--- Comment #6 from Andrej Mitrovic  2013-01-10 
07:37:02 PST ---
The pull for Issue 6057 fixes this.

*** This issue has been marked as a duplicate of issue 6057 ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 8888] enums with initializers inside functions cause linker error

2012-11-19 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=


Andrej Mitrovic  changed:

   What|Removed |Added

 CC||andrej.mitrov...@gmail.com
 OS/Version|Windows |All


--- Comment #5 from Andrej Mitrovic  2012-11-19 
02:05:59 PST ---
Related bug:

unittest
{
enum En8143 : int { A = 10, B = 20, C = 30, D = 20 }
enum En8143[][] m3 = to!(En8143[][])([[10, 30], [30, 10]]);
static assert(m3 == [[En8143.A, En8143.C], [En8143.C, En8143.A]]);
}

This breaks both the win32 and posix linkers.

The following fixes the win32 linker, but it doesn't fix the posix linker:

version(unittest)
{
enum En8143 : int { A = 10, B = 20, C = 30, D = 20 }
enum En8143[][] m3 = to!(En8143[][])([[10, 30], [30, 10]]);
static assert(m3 == [[En8143.A, En8143.C], [En8143.C, En8143.A]]);
}

unittest
{
// ...
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 8888] enums with initializers inside functions cause linker error

2012-10-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=



--- Comment #4 from hst...@quickfur.ath.cx 2012-10-27 17:05:06 PDT ---
Another data point: changing 'auto' to 'char[]' makes it work. Specifying
'Code[]' makes it fail.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 8888] enums with initializers inside functions cause linker error

2012-10-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=



--- Comment #3 from hst...@quickfur.ath.cx 2012-10-27 17:02:45 PDT ---
This code works correctly on GDC (gdc-4.7 git branch, which I believe is 2.059
based), so this seems to be a backend bug.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---