[llvm-bugs] [Bug 48465] New: Compiler crashes due to incorrect template pack syntax
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Dec 9 12:42:50 PST 2020
https://bugs.llvm.org/show_bug.cgi?id=48465
Bug ID: 48465
Summary: Compiler crashes due to incorrect template pack syntax
Product: clang
Version: 10.0
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++2a
Assignee: unassignedclangbugs at nondot.org
Reporter: dbronick at go.olemiss.edu
CC: blitzrakete at gmail.com, erik.pilkington at gmail.com,
llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk
Created attachment 24257
--> https://bugs.llvm.org/attachment.cgi?id=24257&action=edit
Crash synopsis including tmp files (sh and cpp), original run script, and stack
dump
Overview: When an unexpected, unexpanded parameter pack is encountered in the
template arguments of a concept, the compiler crashes.
Steps to Reproduce: Attempt to compile the following with clang++-10
-std=c++20:
=======================Begin Sample============================
template<typename... Ts>
concept test = requires{sizeof...(Ts);};//trivially true
template<typename... Ts>
requires test<Ts>
struct Test{};
int main()
{
Test<>;
return 0;
}
=======================End Sample==============================
Actual Result: The compiler crashes with a seg fault
Expected Result: A syntax error message about an unexpected parameter pack
Build Data & Hardware: 2020 December 9th on Ubuntu 20.04.1 LTS with kernel
5.4.0-56-generic
--
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/20201209/922c07d6/attachment.html>
More information about the llvm-bugs
mailing list