Bug 15200 – [REG2.068.2] ICE(glue.c) when compiling with -inline
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-10-13T09:23:00Z
Last change time
2015-10-14T15:05:55Z
Keywords
ice, pull
Assigned to
nobody
Creator
jiki
Comments
Comment #0 by jiki — 2015-10-13T09:23:03Z
This code works with 2.068.1.
But ICE with 2.068.2.
dmd -c -inline test.d
test.d:
import func;
void test()
{
f();
}
func.d:
import std.algorithm;
auto f() // not void
{
sub([0], false);
}
void sub(R)(R list, bool b)
{
foreach (i; list.filter!(delegate(e)=>b) ) { }
}
OUTPUT:
Assertion failure: '!v->csym' on line 1069 in file 'glue.c'
NOTE:
My actual project does not compile separately(-c), but the problem comes.