Summary: Crash trying to use address of variable in struct
                    constructor at module level
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Stewart Gordon <> 2012-01-27 11:22:22 PST ---
DMD 2.057, Windows Vista 32-bit
struct TestStruct {
    this(int* d) {}

int xm;
auto tsm = TestStruct(&xm);
C:\Users\Stewart\Documents\Programming\D\Tests\bugs>dmd inout_ctor_bug.d
inout_ctor_bug.d(6): Error: static variable xm cannot be read at compile time
Problem signature:
  Problem Event Name:    APPCRASH
  Application Name:    dmd.exe
  Application Version:
  Application Timestamp:    00000000
  Fault Module Name:    dmd.exe
  Fault Module Version:
  Fault Module Timestamp:    00000000
  Exception Code:    c0000005
  Exception Offset:    0007e672
  OS Version:    6.0.6002.
  Locale ID:    2057
  Additional Information 1:    482b
  Additional Information 2:    fe3cbbb77b564d5f0cb2cc6fc75b3c2f
  Additional Information 3:    73f1
  Additional Information 4:    1e2657c1444006182528bd2953dbb394

The error message the compiler actually emits seems correct, but the crash
certainly isn't.

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

Reply via email to