← Back to index
|
Original Bugzilla link
Bug 7545 – ICE(cast.c) Merge integral types through alias this
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-02-19T07:46:00Z
Last change time
2012-02-19T13:10:31Z
Keywords
ice, pull
Assigned to
yebblies
Creator
code
Attachments
ID
Filename
Summary
Content-Type
Size
1077
repro.d
repro case
application/octet-stream
272
Comments
Comment #0
by code — 2012-02-19T07:46:30Z
Created attachment 1077 repro case See attached repro case
Comment #1
by yebblies — 2012-02-19T07:51:35Z
Reduced: struct S7545 { uint id; alias id this; } void test7545() { auto id = 0 ? S7545() : -1; } Workaround: auto id = 0 ? S7545() : cast(uint)-1;
Comment #2
by yebblies — 2012-02-19T08:22:15Z
https://github.com/D-Programming-Language/dmd/pull/740
Comment #3
by github-bugzilla — 2012-02-19T12:23:57Z
Commit pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/5da25b1cfd43d9fd61cc2a3ecba7d6388735ab1c
Merge pull request #740 from yebblies/issue7545 Issue 7545 - ICE(cast.c) Merge integral types through alias this