Summary: optlink crash with large array of structs
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: Optlink

--- Comment #0 from 2011-09-15 12:59:56 PDT ---
This D2 program:

double[7_000_000] array = void;
void main() {}

DMD 2.055 gives an expected error message:
test.d(1): Error: index 7000000 overflow for static array

But this similar program:

struct Foo {
    double x /*= 0*/;
Foo[7_000_000] array = void;
void main() {}

Causes a crash of optlink at EIP=004114FC.

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

Reply via email to