Summary: Bus errors with array operations
           Product: D
           Version: future
          Platform: x86
        OS/Version: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Matt Pillsbury <> 2010-05-14 
18:35:49 PDT ---
Using an arithmetic operations on arrays causes bus errors when compiling with
DMD 2.046 on Mac OS 10.6.3.

void main ()
  auto vec = new double[10];

  foreach(i, ref x; vec) { x = cast(double) i; }

  vec[] *= 0.5; 

This compiles with no errors or warnings, and a bus error results when the
resulting binary is executed.

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

Reply via email to