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

--- Comment #0 from 2011-11-05 17:52:54 PDT ---
This program:

import std.stdio;
enum Foo : char { A = 'a' }
void main() {
    Foo[] array = new Foo[5];

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:
------- You are receiving this mail because: -------

Reply via email to