[Bug c++/114114] [11/12/13/14 Regression] Internal compiler error on function-local conditional noexcept
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Feb 26 17:01:03 GMT 2024
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114114
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2024-02-26
Ever confirmed|0 |1
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed, reduced further:
```
template<bool yes_or_no>
constexpr void test() {
constexpr bool is_yes = yes_or_no;
struct S
{
constexpr S() noexcept(is_yes){}
};
S s;
}
int main()
{
test<true>();
}
```
More information about the Gcc-bugs
mailing list