Bug 10632 – [ICE](glue.c line 1227) With inlining and tuples

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2013-07-13T09:06:00Z
Last change time
2013-11-21T03:20:25Z
Keywords
rejects-valid
Assigned to
nobody
Creator
bearophile_hugs

Comments

Comment #0 by bearophile_hugs — 2013-07-13T09:06:42Z
import std.typecons: Tuple; struct Foo {} alias Bar = Tuple!(Foo); Bar spam() { Bar y; y = spam(); return y; } void main() {} dmd 2.064alpha gives, if I compile with -inline: Assertion failure: '0' on line 1227 in file 'glue.c' Maybe it's a regression.
Comment #1 by yebblies — 2013-11-20T22:20:51Z
Cannot reproduce.
Comment #2 by bearophile_hugs — 2013-11-21T03:14:21Z
Closed. Do you want to add testcases to dmd for similar code that used to not work?
Comment #3 by yebblies — 2013-11-21T03:20:25Z
(In reply to comment #2) > Closed. Do you want to add testcases to dmd for similar code that used to not > work? Not really, no. I will be happy to merge pull requests if somebody else takes the time to do it. (hint)