digitalmars.D.bugs - [Issue 991] New: void static array: integral constant must be scalar type, not void
- d-bugmail puremagic.com (16/16) Feb 21 2007 http://d.puremagic.com/issues/show_bug.cgi?id=991
- d-bugmail puremagic.com (10/10) Feb 26 2007 http://d.puremagic.com/issues/show_bug.cgi?id=991
- d-bugmail puremagic.com (22/22) Jul 08 2008 http://d.puremagic.com/issues/show_bug.cgi?id=991
- d-bugmail puremagic.com (12/12) Jun 11 2011 http://d.puremagic.com/issues/show_bug.cgi?id=991
http://d.puremagic.com/issues/show_bug.cgi?id=991 Summary: void static array: integral constant must be scalar type, not void Product: D Version: 1.007 Platform: PC OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla digitalmars.com ReportedBy: chris dprogramming.com I wanted to reserve some space without any particular type, void[8] x; // DMD 1.007: Error: integral constant must be scalar type, not void --
Feb 21 2007
http://d.puremagic.com/issues/show_bug.cgi?id=991 thomas-dloop kuehne.cn changed: What |Removed |Added ---------------------------------------------------------------------------- OS/Version|Windows |All ------- Comment #1 from thomas-dloop kuehne.cn 2007-02-26 05:37 ------- Added to DStress as http://dstress.kuehne.cn/run/v/void_06_A.d http://dstress.kuehne.cn/run/v/void_06_B.d --
Feb 26 2007
http://d.puremagic.com/issues/show_bug.cgi?id=991 e-t172 akegroup.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |e-t172 akegroup.org ------- Comment #2 from e-t172 akegroup.org 2008-07-08 06:42 ------- Confirmed and still happening with DMD 1.030 and GDC r231. DMD 1.030 result: --- Error: integral constant must be scalar type, not void --- GDC r231 / GCC 4.1.2 / x86_64 result: --- Error: integral constant must be scalar type, not void cc1d: ../../gcc-4.1.2-gdc/gcc/d/dmd/todt.c:85: dt_t* createTsarrayDt(dt_t*, Type*): Assertion `tsa->size(0) % eoa_size == 0' failed. test.d:0: internal compiler error: Aborted Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. --- --
Jul 08 2008
http://d.puremagic.com/issues/show_bug.cgi?id=991 yebblies <yebblies gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |yebblies gmail.com Resolution| |FIXED --- Comment #3 from yebblies <yebblies gmail.com> 2011-06-11 10:43:50 PDT --- This works in dmd 1.068 and dmd 2.053, if you use a void initializer. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 11 2011