[llvm-bugs] [Bug 49626] New: Frontend crash when compiling with -O2
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Mar 18 06:43:25 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=49626
Bug ID: 49626
Summary: Frontend crash when compiling with -O2
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++2a
Assignee: unassignedclangbugs at nondot.org
Reporter: koncek.marian at gmail.com
CC: blitzrakete at gmail.com, erik.pilkington at gmail.com,
llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk
Created attachment 24656
--> https://bugs.llvm.org/attachment.cgi?id=24656&action=edit
short source which causes the crash
See (also as an attachment):
https://godbolt.org/z/fb9adx
compile with:
$ clang++ -std=c++2a example.cpp -O2
It seems like this crash happens only with this particular setup, i. e.
inheriting from std::array, casting to std::string_view and printing to cout.
Removing various parts made clang work fine.
--
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/20210318/867b35da/attachment-0001.html>
More information about the llvm-bugs
mailing list