[Issue 15200] New: [REG2.068.2] ICE(glue.c) when compiling with -inline
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Tue Oct 13 02:23:03 PDT 2015
    
    
  
https://issues.dlang.org/show_bug.cgi?id=15200
          Issue ID: 15200
           Summary: [REG2.068.2] ICE(glue.c) when compiling with -inline
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Keywords: ice
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: jiki at red.email.ne.jp
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.
--
    
    
More information about the Digitalmars-d-bugs
mailing list