www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10629] New: [ICE](dt.c 106) with void array

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10629

           Summary: [ICE](dt.c 106) with void array
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: bearophile_hugs eml.cc


--- Comment #0 from bearophile_hugs eml.cc 2013-07-13 07:05:43 PDT ---
class Foo {}
struct Bar {
    void[__traits(classInstanceSize, Foo)] x;
}
void main() {
    Bar f;
}


It generates an ICE and the first error message has no line number, dmd
2.064alpha:

Error: void does not have a default initializer
Internal error: backend\dt.c 106

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 13 2013
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10629


Henning Pohl <henning still-hidden.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |henning still-hidden.de


--- Comment #1 from Henning Pohl <henning still-hidden.de> 2013-07-13 13:39:21
PDT ---
This is fixed by https://github.com/D-Programming-Language/dmd/pull/2154.

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