www.digitalmars.com         C & C++   DMDScript  

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

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: maidenphil hotmail.com


--- Comment #0 from Phil Lavoie <maidenphil 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: -------
Nov 11 2013
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11496


Andrej Mitrovic <andrej.mitrovich gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |andrej.mitrovich gmail.com
         Resolution|                            |WORKSFORME


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich gmail.com> 2013-11-11
13:09:53 PST ---
This was fixed in 2.064.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 11 2013
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11496



--- Comment #2 from Phil Lavoie <maidenphil hotmail.com> 2013-11-11 14:44:25
PST ---
Coolio

(In reply to comment #1)
 This was fixed in 2.064.
-- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Nov 11 2013