www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10163] New: struct with static void array member without initializer causes ICE

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

           Summary: struct with static void array member without
                    initializer causes ICE
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: jakobovrum gmail.com


--- Comment #0 from Jakob Ovrum <jakobovrum gmail.com> 2013-05-24 08:05:28 PDT
---
Code:
----
struct S
{
    void[1] arr;
}
----
The array size does not matter.

Output (DMD 2.063 beta):
----
Error: void does not have a default initializer
Internal error: ..\ztc\dt.c 106
----

The error seems to be correct (though badly worded) but sorely needs line
information. Adding an `= void` or similar initializer (correctly) makes it
work.
The ICE is a regression and does not occur in 2.062.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 24 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10163


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice
           Severity|regression                  |major


--- Comment #1 from Kenji Hara <k.hara.pg gmail.com> 2013-05-27 06:00:43 PDT ---
The code had not been accepted, so I think this is not a blocker regression
against 2.063 release.
Change the importance.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 27 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10163



--- Comment #2 from Jakob Ovrum <jakobovrum gmail.com> 2013-05-27 06:02:45 PDT
---
(In reply to comment #1)
 The code had not been accepted, so I think this is not a blocker regression
 against 2.063 release.
 Change the importance.
Of course, my bad. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 27 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10163


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|ice                         |diagnostic, pull
                 CC|                            |henning still-hidden.de


--- Comment #3 from Henning Pohl <henning still-hidden.de> 2013-06-09 10:44:05
PDT ---
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: -------
Jun 09 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10163


Martin Krejcirik <mk krej.cz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rswhite4 googlemail.com


--- Comment #4 from Martin Krejcirik <mk krej.cz> 2013-10-23 03:04:57 CEST ---
*** Issue 11318 has been marked as a duplicate of this issue. ***

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