https://bugs.llvm.org/show_bug.cgi?id=45699
Bug ID: 45699
Summary: Unexpanded parameter pack in 'requires clause' crashes
the compiler
Product: clang
Version: 10.0
Hardware: Macintosh
OS: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: C++2a
Assignee: unassignedclangb...@nondot.org
Reporter: s92...@gmail.com
CC: blitzrak...@gmail.com, erik.pilking...@gmail.com,
llvm-bugs@lists.llvm.org, richard-l...@metafoo.co.uk
Created attachment 23407
--> https://bugs.llvm.org/attachment.cgi?id=23407&action=edit
Diagnostic Log and call trace
Steps to Reproduce
==================
- source file: Below as a minimal reproducible sample cpp file.
- This is surely a wrong usage of C++20 requires clause, but it crashes clang
10.0.0 on my Mac running MacOSX 10.15.
- The clang 10.0.0 was compiled and installed from Brew.
- clang++ concept_crash.cpp -std=c++20
template<typename>
concept true_con = true;
template<typename... Args>
void foo(Args&&...) requires true_con<Args> { }
int main() { foo(); }
Result
======
The clang compiler crashes with call trace printed. (Crash log in attachment)
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs