www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13245] New: segfault when instantiating template with


          Issue ID: 13245
           Summary: segfault when instantiating template with
                    non-compiling function literal
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Keywords: ice
          Severity: regression
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: nilsbossung googlemail.com

git head segfaults.
2.066.0-rc1 segfaults.
2.066.0-b6 and older work.

cat > test.d << code
template T(alias f) {}
static assert(!is(T!((int x) {return invalid;})));
    /* no segfault without "return" */
dmd -c test.d
Segmentation fault (core dumped)

Aug 03 2014