[llvm-bugs] [Bug 50196] New: Segmentation fault parsing parameter pack expansion
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun May 2 03:43:29 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=50196
Bug ID: 50196
Summary: Segmentation fault parsing parameter pack expansion
Product: clang
Version: 10.0
Hardware: PC
OS: FreeBSD
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: serpent7776 at gmail.com
CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
richard-llvm at metafoo.co.uk
I got segfault compiling this code:
#include <utility>
template <std::size_t ...Ts>
struct Ice<std::make_index_sequence<sizeof(Ts...)>>
{};
I'm using clang 10.0.1, but I also reproduced the issue with clang 12 and trunk
on godbolt https://godbolt.org/z/5eEsvWdxd
The issue persists if I omit parameter pack expansion on line 4:
#include <utility>
template <std::size_t ...Ts>
struct Ice<std::make_index_sequence<sizeof(Ts)>>
{};
--
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/20210502/7bd6ec41/attachment.html>
More information about the llvm-bugs
mailing list