Bug 8987 – Compiling using '-O -release' options yield 'Internal error: backend\cgcod.c 1663'

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2012-11-09T07:17:00Z
Last change time
2015-06-09T05:11:54Z
Assigned to
nobody
Creator
andre

Attachments

IDFilenameSummaryContent-TypeSize
1159primes.dCalculate the 10001st primeapplication/octet-stream491

Comments

Comment #0 by andre — 2012-11-09T07:17:30Z
Created attachment 1159 Calculate the 10001st prime I found a PHP code to calculate the 10001st prime number is: http://kahthong.com/2011/12/project-euler-problem-7 and translated that into D (attached). Compiling with -O and -release options yield this error message: Internal error: backend\cgcod.c 1663 But either -O or -release works fine (no compilation error). dmd it the latest from git.
Comment #1 by github-bugzilla — 2012-11-15T02:50:19Z
Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/2f2b2a125b607cf822eee214052d8238a740eeaf fix Issue 8987 - Compiling using -O -release options yield Internal error: backend\cgcod.c 1663
Comment #2 by github-bugzilla — 2012-11-16T13:49:21Z
Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/ebbf254c4ed938e9e3b29e688ba5d07098696e5e fix Issue 8987 - Compiling using -O -release options yield Internal error: backend\cgcod.c 1663