Bug 12414 – Assertion failure in 'template.c' on inout+foreach+template tuple parameter

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-03-19T09:19:00Z
Last change time
2014-08-01T10:44:08Z
Keywords
ice
Assigned to
nobody
Creator
verylonglogin.reg

Comments

Comment #0 by verylonglogin.reg — 2014-03-19T09:19:33Z
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' ---
Comment #1 by k.hara.pg — 2014-04-07T05:03:50Z
I cannot reproduce ICE with 2.060 - 2.065 and git-head.