Bug 1544 – Internal error: ..\ztc\cgcs.c 358 -- tuples and structs

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2007-10-01T20:11:00Z
Last change time
2014-02-17T22:50:23Z
Keywords
ice-on-valid-code
Assigned to
bugzilla
Creator
jarrett.billingsley

Comments

Comment #0 by jarrett.billingsley — 2007-10-01T20:11:38Z
struct Tup(T...) { T values; } void foo(int x, float y) { } Tup!(int, float) bar() { return Tup!(int, float)(4, 5.6); } void main() { foo(bar().values); } The issue is the call in main -- if it's changed to: auto t = bar(); foo(t.values); it compiles fine.
Comment #1 by clugdbug — 2009-05-07T09:36:50Z
This works in DMD 1.042.