digitalmars.D.bugs - [Issue 7695] New: ICE on associative array with keys of struct type with const members
- d-bugmail puremagic.com (26/26) Mar 12 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7695
- d-bugmail puremagic.com (15/15) Apr 09 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7695
- d-bugmail puremagic.com (10/10) Apr 09 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7695
- d-bugmail puremagic.com (9/9) Apr 09 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7695
- d-bugmail puremagic.com (13/13) Apr 09 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7695
http://d.puremagic.com/issues/show_bug.cgi?id=7695 Summary: ICE on associative array with keys of struct type with const members Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: simen.kjaras gmail.com --- Comment #0 from Simen Kjaeraas <simen.kjaras gmail.com> 2012-03-12 19:26:50 PDT --- struct Bar { const int t; } void main( ) { int[Bar] a; int n = a.length; } Assertion failure: 'impl' on line 4407 in file 'mtype.c' abnormal program termination -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 12 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7695 Nick Sabalausky <cbkbbejeap mailinator.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |cbkbbejeap mailinator.com Summary|ICE(mtype.c) on associative |Regression(2.058): |array with keys of struct |ICE(mtype.c) on associative |type with const members |array with keys of struct | |type with const members Severity|normal |regression --- Comment #1 from Nick Sabalausky <cbkbbejeap mailinator.com> 2012-04-09 13:20:23 PDT --- This is a regression that was introduced in 2.058 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 09 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7695 --- Comment #2 from Nick Sabalausky <cbkbbejeap mailinator.com> 2012-04-09 13:25:42 PDT --- Don't know if this helps, but the problem also occurs if you replace const int t; with: const opEquals(Bar ) {} The function must be named opEquals. If it's named "foo", the ICE goes away. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 09 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7695 --- Comment #3 from github-bugzilla puremagic.com 2012-04-09 20:41:47 PDT --- Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/d46fde7cc0fc4bad25213aee137fd2eeeb2a63af fix Issue 7695 - Regression(2.058): ICE(mtype.c) on associative array with keys of struct type with const members -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 09 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7695 Walter Bright <bugzilla digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla digitalmars.com Resolution| |FIXED --- Comment #4 from Walter Bright <bugzilla digitalmars.com> 2012-04-09 20:43:18 PDT --- The problem here is the const member needs an initializer. The error was suppressed and ignored, though, causing the compiler to later fail. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 09 2012