diff --git a/gcc/testsuite/g++.dg/cpp1z/class-deduction100.C b/gcc/testsuite/g++.dg/cpp1z/class-deduction100.C new file mode 100644 index 00000000000..9fa307ffb77 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp1z/class-deduction100.C @@ -0,0 +1,13 @@ +// PR c++/90782 +// { dg-do compile { target c++17 } } + +template +struct bar { + template + bar(B& obj, void(B::*f)(A...)const=&B::operator()){} +}; +int main() { + const auto f1 = [](){}; + bar f8(f1); +} +