https://d.puremagic.com/issues/show_bug.cgi?id=11868
Summary: ICE(template.c) on passing `inout` `ref` `foreach` var
as TemplateParameterList
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: ice
Severity: regression
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Denis Shelomovskij <[email protected]> 2014-01-05
13:25:45 MSK ---
This code should compile:
---
void f(A...)(A) { }
void g(inout(int)[] arr)
{
foreach(ref e; arr)
f(e);
}
---
Assertion failure: '0' on line 1503 in file 'template.c'
---
It worked with previous dmd. As a result dmd ICEs now on such previously
working code:
---
import std.algorithm;
void f(inout(int)[] arr)
{ arr.all!(a => true)(); }
---
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------