[Bug c++/107211] [12/13/14/15 Regression] GCC compiles invalid use of non static member function in noexcept operator
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jul 24 23:47:41 GMT 2024
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107211
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Tymi from comment #6)
> And just as an addition, it always yields true.
> For example here:
> ```cpp
> int awoo(void) noexcept(false);
> int awoo(int) noexcept(false);
>
> int main(void)
> {
> std::cout << noexcept(awoo);
> }
> ```
> It still yields true (1). I suspect (I have not seen the source) the
> behaviour for this is already done, just the error is handled a different
> way than.. it should..
That is PR 78048 (and PR 86602).
More information about the Gcc-bugs
mailing list