Summary: [CTFE] - segfault for struct literal with AA field
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 2012-04-11 08:27:29 PDT ---
cat > bug.d << CODE
struct Foo
    int[int] tab;

Foo ctfe()
    Foo foo;[0] = 0;
    return foo;

enum f = ctfe();

dmd -c bug


The segfault happens during the hasNonConstPointers check
for the enum initializer. At that point the tab field type
is 'int' instead of 'int[int]'.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to