Bug 16225 – [REG 2.068] Internal error cod1.c 1338 with -O

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
All
Creation time
2016-07-01T17:56:00Z
Last change time
2016-08-01T19:54:31Z
Keywords
ice-on-valid-code, pull
Assigned to
nobody
Creator
4burgos

Comments

Comment #0 by 4burgos — 2016-07-01T17:56:45Z
When using -O with dmd fails with the following code (reduced): ``` struct C { hash_t foo( ) { int y; return ((cast(ubyte*)&y)[1]); } } ``` ``` nemanjaboric:/home/nemanjaboric/test-clean.reduced $ dmd -O testreduced.d Internal error: backend/cod1.c 1338 ``` ``` DMD64 D Compiler v2.071.1 ```
Comment #1 by 4burgos — 2016-07-01T18:16:17Z
Looks like it got introduced in 2.068
Comment #2 by schveiguy — 2016-07-01T18:40:41Z
Confirms it fails also on MacOS
Comment #3 by bugzilla — 2016-07-09T06:10:18Z
Also fails on Win64
Comment #4 by bugzilla — 2016-07-09T06:25:02Z
Comment #5 by github-bugzilla — 2016-07-09T11:17:47Z
Commits pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/ebbb2c6fb8856afb709bb1b05260df875a3790c4 fix Issue 16225 - [REG 2.068] Internal error cod1.c 1338 with -O https://github.com/dlang/dmd/commit/8a4a90f51bbc185214f70ccb115cab147a5a7f62 Merge pull request #5924 from MartinNowak/fix16225 fix Issue 16225 - [REG 2.068] Internal error cod1.c 1338 with -O
Comment #6 by github-bugzilla — 2016-08-01T19:54:31Z
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/ebbb2c6fb8856afb709bb1b05260df875a3790c4 fix Issue 16225 - [REG 2.068] Internal error cod1.c 1338 with -O https://github.com/dlang/dmd/commit/8a4a90f51bbc185214f70ccb115cab147a5a7f62 Merge pull request #5924 from MartinNowak/fix16225