digitalmars.D.bugs - [Issue 1544] New: Internal error: ..\ztc\cgcs.c 358 -- tuples and structs
- d-bugmail puremagic.com (33/33) Oct 01 2007 http://d.puremagic.com/issues/show_bug.cgi?id=1544
- d-bugmail puremagic.com (9/9) May 07 2009 http://d.puremagic.com/issues/show_bug.cgi?id=1544
http://d.puremagic.com/issues/show_bug.cgi?id=1544 Summary: Internal error: ..\ztc\cgcs.c 358 -- tuples and structs Product: D Version: 1.021 Platform: PC OS/Version: Windows Status: NEW Keywords: ice-on-valid-code Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla digitalmars.com ReportedBy: jarrett.billingsley gmail.com 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. --
Oct 01 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1544 clugdbug yahoo.com.au changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME ------- Comment #1 from clugdbug yahoo.com.au 2009-05-07 09:36 ------- This works in DMD 1.042. --
May 07 2009