[llvm-bugs] [Bug 51938] New: [ICE] consteval crash with fmtlib
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Sep 22 08:10:45 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=51938
Bug ID: 51938
Summary: [ICE] consteval crash with fmtlib
Product: clang
Version: 12.0
Hardware: Macintosh
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: C++2a
Assignee: unassignedclangbugs at nondot.org
Reporter: tim at klingt.org
CC: blitzrakete at gmail.com, erik.pilkington at gmail.com,
llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk
compiling fmtlib/spdlog with appleclang from xcode-12.5 and xcode-13 in c++20
mode gives me an ICE.
trying to reduce the test case with cvise i ended up with this reproducer:
```
struct basic_format_string { template < typename S > consteval
basic_format_string(S
} using format_string = basic_format_string;
format(format_string ;
using filename_t = int;
template < typename > struct rotating_file_sink {
filename_t calc_filename(}
template < typename Mutex > filename_t rotating_file_sink< Mutex
>::calc_filename() {
filename_t ext;
format(ext)}
template class rotating_file_sink< int >;
```
--
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/20210922/02be4466/attachment.html>
More information about the llvm-bugs
mailing list