October 02, 2007 [Issue 1544] New: Internal error: ..\ztc\cgcs.c 358 -- tuples and structs | ||||
---|---|---|---|---|
| ||||
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. -- |
May 07, 2009 [Issue 1544] Internal error: ..\ztc\cgcs.c 358 -- tuples and structs | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | 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. -- |
Copyright © 1999-2021 by the D Language Foundation