Summary: Segfault on exit when using array ops with arrays of
                    doubles larger than 8 elements
           Product: D
           Version: 2.029
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

This program causes a segmentation fault when exiting:

void main()
   double[9] array;
   array[] *= 2;

Curious things:

1. The program seems to actually execute correctly. I mean, adding more code to
the program, including other array operations and printing the contents of
'array' results in the expected behavior -- but it keeps segfaulting on exit.

2. Replacing 'double' with 'float', 'real', 'int' (and possibly others) makes
the program work correctly.

3. Using an array with less than 9 elements makes the program work correctly.


Reply via email to