https://d.puremagic.com/issues/show_bug.cgi?id=12414
Summary: Assertion failure in 'template.c' on
inout+foreach+template tuple parameter
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: ice
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Denis Shelomovskij <[email protected]> 2014-03-19
20:19:33 MSK ---
This code should compile:
---
void t(T...)(T) { }
void f1(inout int i)
{
const c = i;
t(c);
}
void f2(inout(int)[] arr)
{
foreach(ref e; arr)
t(e);
}
---
Assertion failure: '0' on line 1503 in file 'template.c'
---
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------