[Issue 1544] New: Internal error: ..\ztc\cgcs.c 358 -- tuples and structs
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Oct 1 18:11:39 PDT 2007
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 at digitalmars.com
ReportedBy: jarrett.billingsley at 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.
--
More information about the Digitalmars-d-bugs
mailing list