[Bug c++/95564] GCC rejects lambda expression with "noexcept(1+1)"

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jun 9 23:04:15 GMT 2020


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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mpolacek at gcc dot gnu.org

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
There was some discussion on the Core C++ mailing list about whether a
conversion to bool should be narrowing, and though opinions differed, I think
gcc isn't incorrect in rejecting this code.


More information about the Gcc-bugs mailing list