[Issue 13245] New: segfault when instantiating template with non-compiling function literal

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Aug 3 11:17:07 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=13245

          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 at puremagic.com
          Reporter: nilsbossung at 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" */
code
dmd -c test.d
---
Segmentation fault (core dumped)
---

--


More information about the Digitalmars-d-bugs mailing list