[Bug c++/108116] New: internal compiler error: in check_noexcept_r, at cp/except.cc:1074
m101010a at gmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Dec 15 02:05:21 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108116
Bug ID: 108116
Summary: internal compiler error: in check_noexcept_r, at
cp/except.cc:1074
Product: gcc
Version: 12.2.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: m101010a at gmail dot com
Target Milestone: ---
When compiling the code
#include <initializer_list>
struct c {
c(int);
~c();
};
struct d {
d(std::initializer_list<c>);
};
struct e {
d f{0};
};
template <typename> void h() {
e{};
}
GCC 12 fails with an internal compiler error. This happens with GCC 12.1,
12.2, and when built off of the recent git commit
f17ddf2c484427e6ddfd994b62fefcdac27ac02f. It does not happen with GCC 11.3 or
before. The full error details and preprocessed source are in the attachment.
More information about the Gcc-bugs
mailing list