[Bug c++/103969] generic lambda is rejected as a template argument default

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jan 11 02:36:48 GMT 2022


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|rejects-valid               |
            Summary|'auto' parameter not        |generic lambda is rejected
                   |permitted in this context   |as a template argument
                   |                            |default

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Are you sure this is valid because clang rejects:
template <auto t = [](auto){}>
struct s {
    s(){t(1);}
};
s<> t;


More information about the Gcc-bugs mailing list