[Bug c++/92787] P0634R3 is not implemented correctly if parameter-declaration appears in a default argument

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Sep 21 23:02:03 GMT 2020


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

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> ---
I'm not completely sure; I thought the "in a default argument" thing was
supposed to prevent us from adding implicit typename for T::X here:

template <typename T>
void f(typename T::type x = [](T::type x = T::X){return x;}(typename
T::type{}))
{
}


More information about the Gcc-bugs mailing list