[Issue 8888] enums with initializers inside functions cause linker error
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Nov 19 02:06:05 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8888
Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |andrej.mitrovich at gmail.com
OS/Version|Windows |All
--- Comment #5 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 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: -------
More information about the Digitalmars-d-bugs
mailing list