Bug 14317 – [REG2.066] ICE (cgcod.c 1767) when compiing with -profile -O -inline

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2015-03-22T04:24:00Z
Last change time
2015-06-17T21:02:45Z
Keywords
ice
Assigned to
nobody
Creator
jiki

Comments

Comment #0 by jiki — 2015-03-22T04:24:37Z
This worked in DMD2.065. COMMAND: dmd.exe -profile -O -inline test.d OUTPUT: Internal error: backend\cgcod.c 1767 CODE: ---------------- struct Range { private string s; char charAt(int unused1) { return s[0]; } } bool count(ref Range r, out int unused2) { int unused3; char c = r.charAt(0); return true; }
Comment #1 by code — 2015-03-22T17:14:04Z
Comment #2 by bugzilla — 2015-03-23T10:54:04Z
Comment #3 by github-bugzilla — 2015-03-23T15:26:31Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/0a4928f382d167e221667910bec3abd8bd48d84d fix Issue 14317 - [REG2.066] ICE (cgcod.c 1767) when compiing with -profile -O -inline https://github.com/D-Programming-Language/dmd/commit/790afb3748ed61e56e0ad124942a6e90b42b02b3 Merge pull request #4511 from WalterBright/fix14317 fix Issue 14317 - [REG2.066] ICE (cgcod.c 1767) when compiing with -profile -O -inline
Comment #4 by github-bugzilla — 2015-03-23T15:41:25Z
Commit pushed to 2.067 at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/c6b489b4cde70ec194fde21c2603b3e127f51479 Merge pull request #4511 from WalterBright/fix14317 fix Issue 14317 - [REG2.066] ICE (cgcod.c 1767) when compiing with -profile -O -inline
Comment #5 by github-bugzilla — 2015-03-23T18:50:02Z
Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/e52968b55483de0ae2867ca13855e957cb4be5ba fix Issue 14317 - [REG2.066] ICE (cgcod.c 1767) when compiing with -profile -O -inline
Comment #6 by github-bugzilla — 2015-04-11T12:25:14Z
Comment #7 by github-bugzilla — 2015-06-17T21:02:45Z