Bug creation and email sending has been disabled, file new bugs at gcc.gnu.org/bugzilla
Bug 145 - ICE when class members initializing to void
Summary: ICE when class members initializing to void
Status: RESOLVED UPSTREAM
Alias: None
Product: GDC
Classification: Unclassified
Component: gdc (show other bugs)
Version: 4.9.x
Hardware: x86 Linux
: --- normal
Assignee: Iain Buclaw
URL:
Depends on:
Blocks:
 
Reported: 2014-07-22 15:49 CEST by Ketmar Dark
Modified: 2014-07-23 14:34 CEST (History)
1 user (show)

See Also:


Attachments
patch for dfrontend (766 bytes, patch)
2014-07-23 09:08 CEST, Ketmar Dark
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ketmar Dark 2014-07-22 15:49:18 CEST
this code makes current gdc 4.9 to ICE and segfault:

module zzz;

class A {
  static Object obj = void;
}


but it works without "= void".


p.s. seems that this is fronted fault, as current DMD segfaults too.
Comment 1 Ketmar Dark 2014-07-23 09:08:57 CEST
Created attachment 71 [details]
patch for dfrontend
Comment 2 Ketmar Dark 2014-07-23 09:09:29 CEST
fix attached.
Comment 3 Iain Buclaw 2014-07-23 09:27:51 CEST
PR Raised upstream with testcases.

https://github.com/D-Programming-Language/dmd/pull/3802

Wanting to get this into 2.066 ASAP.
Comment 4 Ketmar Dark 2014-07-23 09:33:17 CEST
thank you. i just created ticket in DMD bugzilla, so you can add it to your PR: https://issues.dlang.org/show_bug.cgi?id=13194
Comment 5 Ketmar Dark 2014-07-23 11:11:18 CEST
fix merged to DMD, so this ticket can be closed i think.
Comment 6 Iain Buclaw 2014-07-23 14:34:29 CEST
I've added an UPSTREAM tag.