[Bug c++/107211] [12/13/14/15 Regression] GCC compiles invalid use of non static member function in noexcept operator

wilczew.tymon at gmail dot com gcc-bugzilla@gcc.gnu.org
Wed Jul 24 18:32:25 GMT 2024


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

Tymi <wilczew.tymon at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |wilczew.tymon at gmail dot com

--- Comment #6 from Tymi <wilczew.tymon at gmail dot com> ---
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..


More information about the Gcc-bugs mailing list