digitalmars.D.bugs - [Issue 6054] New: [CTFE] ICE when returning a returned compile-time associative array containing a key of an idup-ed array literal
- d-bugmail puremagic.com (51/51) May 24 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6054
- d-bugmail puremagic.com (10/10) May 24 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6054
- d-bugmail puremagic.com (14/14) May 30 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6054
http://d.puremagic.com/issues/show_bug.cgi?id=6054 Summary: [CTFE] ICE when returning a returned compile-time associative array containing a key of an idup-ed array literal Product: D Version: D2 Platform: Other OS/Version: Mac OS X Status: NEW Keywords: ice-on-valid-code Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: kennytm gmail.com --- Comment #0 from kennytm gmail.com 2011-05-24 13:18:12 PDT --- Test case: --------------------------------- enum x = { auto p = { int[string] pieces; pieces[['a'].idup] = 1; return pieces; }(); return p; }(); --------------------------------- Bus error --------------------------------- Stack trace: Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_PROTECTION_FAILURE at address: 0x00000000 0x0000acbb in ArrayLiteralExp::implicitConvTo (this=0x345140, t=0x30cc10) at cast.c:524 524 Type *typeb = type->toBasetype(); (gdb) bt #0 0x0000acbb in ArrayLiteralExp::implicitConvTo (this=0x345140, t=0x30cc10) at cast.c:524 #1 0x0000ac80 in AssocArrayLiteralExp::implicitConvTo (this=0x3451a0, t=0x310800) at cast.c:558 #2 0x0000c37d in Expression::implicitCastTo (this=0x3451a0, sc=0x344c30, t=0x310800) at cast.c:32 #3 0x000b97b4 in ExpInitializer::semantic (this=0x310d20, sc=0x344c30, t=0x310800, needInterpret=4) at mars.h:770 #4 0x00057c69 in VarDeclaration::semantic2 (this=0x310d30, sc=0x344c30) at declaration.c:1395 #5 0x000c87f2 in Module::semantic2 (this=0x30feb0) at module.c:829 #6 0x000c6268 in main (argc=5, argv=0x30ad70) at mars.c:1208 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 24 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6054 kennytm gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |regression --- Comment #1 from kennytm gmail.com 2011-05-24 13:18:59 PDT --- (Marking as 'regression', as the bug doesn't appear in 2.052.) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 24 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6054 Don <clugdbug yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |clugdbug yahoo.com.au Resolution| |FIXED --- Comment #2 from Don <clugdbug yahoo.com.au> 2011-05-30 16:58:36 PDT --- https://github.com/D-Programming-Language/dmd/commit/6acc4822c0b3c2a43d2bbe47c7018b078aee93c9 D1: https://github.com/D-Programming-Language/dmd/commit/bccb02ad1d8578767f99efeab4a230a229e24392 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 30 2011