[llvm-bugs] [Bug 38090] New: Crash when trailing return type using recursive instantiation
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Jul 6 23:35:48 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=38090
Bug ID: 38090
Summary: Crash when trailing return type using recursive
instantiation
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: violet.bugreport at gmail.com
CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
The program below will cause a crash in every version (trunk, 6.0, 5.0) I
tested:
struct foo {};
template<class T> auto bar(T a) -> decltype(bar(a)) {}
int main() { bar(foo{}); }
Here a demo: https://wandbox.org/permlink/stDUib6jjPIFnIXP
--
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/20180707/8af8298e/attachment.html>
More information about the llvm-bugs
mailing list