[Bug c++/93595] [c++20] Substitution failure of "auto = []{}" in template parameter list in nested template context
bastien.penavayre at epitech dot eu
gcc-bugzilla@gcc.gnu.org
Fri Feb 7 09:38:00 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93595
--- Comment #1 from bastien penavayre <bastien.penavayre at epitech dot eu> ---
Note that this error only occurs with functions/methods
template<int>
struct ok
{
template<auto = []{}>
using type = int;
template<auto = []{}>
struct otype {};
};
int main()
{
ok<0>::type<> t; //ok
ok<0>::otype<> v; //ok
}
https://godbolt.org/z/ouo4n7
More information about the Gcc-bugs
mailing list