digitalmars.D.bugs - [Issue 2431] New: Internal error: ../ztc/cgcod.c 1031 when using -O
- d-bugmail puremagic.com (25/25) Oct 25 2008 http://d.puremagic.com/issues/show_bug.cgi?id=2431
- d-bugmail puremagic.com (9/9) Dec 07 2008 http://d.puremagic.com/issues/show_bug.cgi?id=2431
http://d.puremagic.com/issues/show_bug.cgi?id=2431 Summary: Internal error: ../ztc/cgcod.c 1031 when using -O Product: D Version: 1.035 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla digitalmars.com ReportedBy: moritzwarning web.de The following code triggers this error when compiled with -O: void trigger(char[] txt) { txt[0] = 'x'; scope(exit) { txt[0] = 'x'; } return; } Removing return or moving scope(exit) to the top of the body fixes the problem. Tested on Debian GNU Linux. --
Oct 25 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2431 bugzilla digitalmars.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED Fixed in DMD 1.037 and 2.021 --
Dec 07 2008