[Bug c++/78048] noexcept operator accepts overload set when it should not

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Dec 9 02:19:14 GMT 2021


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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|noexcept operator does not  |noexcept operator accepts
                   |work properly when          |overload set when it should
                   |substitution required       |not

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
GCC even accepts:
template<typename T> void g(){}
const bool a = noexcept(g);


More information about the Gcc-bugs mailing list