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: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
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._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs