[Bug c++/105221] [10/11/12/13 Regression] gcc rejects true ? [](auto) noexcept {} : [](int) {} in C++17+ (works for C++14)

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Nov 8 23:24:35 GMT 2022


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|gcc rejects true ? [](auto) |[10/11/12/13 Regression]
                   |noexcept {} : [](int) {} in |gcc rejects true ? [](auto)
                   |C++17+ (works for C++14)    |noexcept {} : [](int) {} in
                   |                            |C++17+ (works for C++14)
      Known to work|                            |6.1.0
           Keywords|                            |needs-bisection
      Known to fail|                            |7.1.0, 8.1.0

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Worked in GCC 6 even with an explict -std=c++17 .


More information about the Gcc-bugs mailing list