[llvm-bugs] [Bug 40106] New: Clang segfaults when compiling template with lambda in template params

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Dec 19 15:51:41 PST 2018


https://bugs.llvm.org/show_bug.cgi?id=40106

            Bug ID: 40106
           Summary: Clang segfaults when compiling template with lambda in
                    template params
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++'17
          Assignee: unassignedclangbugs at nondot.org
          Reporter: tamir.bahar at gmail.com
                CC: blitzrakete at gmail.com, erik.pilkington at gmail.com,
                    llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk

Clang segfaulted with the following compiler-explorer sample:
https://gcc.godbolt.org/z/Qgo-Fg

The code in the sample is:

```
    template<int = []{ return 0; }>
    void f() { }

void g() {
    f();
}
```

The flags are:
```
-std=c++17 -Wall
```

With clang-trunk x86_64

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20181219/cae86613/attachment.html>


More information about the llvm-bugs mailing list