[Bug c++/110810] [12/13/14 Regression] ICE in check_noexcept_r, at cp/except.cc:1068

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jul 26 05:30:18 GMT 2023


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110810

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
You don't even need it to be a new or even ~X there:
```
    struct Foo {
        Foo() {}
        ~Foo() {}
    };

    struct X {
        Foo data[4];
    };

    template<int>
    void f() {
        X{};
    }
```


More information about the Gcc-bugs mailing list