November 06, 2011 [Issue 6897] New: Problem allocating an array of local enums | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=6897 Summary: Problem allocating an array of local enums Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: Optlink AssignedTo: nobody@puremagic.com ReportedBy: bearophile_hugs@eml.cc --- Comment #0 from bearophile_hugs@eml.cc 2011-11-05 17:52:54 PDT --- This program: import std.stdio; enum Foo : char { A = 'a' } void main() { Foo[] array = new Foo[5]; writeln(array); } Prints this correct output with DMD 2.057head: [A, A, A, A, A] But with this very similar program: void main() { enum Foo : char { A = 'a' } Foo[] array = new Foo[5]; } the linker gives: Error 42: Symbol Undefined _Dmain3Foo6__initZ -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
February 09, 2013 [Issue 6897] Problem allocating an array of local enums | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=6897 Andrej Mitrovic <andrej.mitrovich@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |andrej.mitrovich@gmail.com Resolution| |WORKSFORME --- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-02-08 17:26:13 PST --- Resolved in git-head. There was another nested enum linker issue that was recently fixed. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation