October 26, 2008 [Issue 2431] New: Internal error: ../ztc/cgcod.c 1031 when using -O | ||||
---|---|---|---|---|
| ||||
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. -- |
December 08, 2008 [Issue 2431] Internal error: ../ztc/cgcod.c 1031 when using -O | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2431 bugzilla@digitalmars.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #1 from bugzilla@digitalmars.com 2008-12-08 00:54 ------- Fixed in DMD 1.037 and 2.021 -- |
Copyright © 1999-2021 by the D Language Foundation