[Issue 11496] New: Code fragment makes dmd crash instead of printing error message.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Nov 11 11:15:15 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=11496

           Summary: Code fragment makes dmd crash instead of printing
                    error message.
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: maidenphil at hotmail.com


--- Comment #0 from Phil Lavoie <maidenphil at hotmail.com> 2013-11-11 11:15:07 PST ---
version 2.063.2

I was playing around and found that the this pointer in the following
declaration:

struct Outer {
  size_t _outerField;

  struct Inner {
    size_t _innerField = this._outerField;    
  }
}

Makes dmd crash instead of printing an error message.

Cheers!
Phil

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list