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: unassignedclangb...@nondot.org
Reporter: violet.bugrep...@gmail.com
CC: dgre...@apple.com, llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs