Debian Codegraph @

gcc/testsuite/g++.dg/cpp1z/class-deduction72.C

raw
1 // PR c++/91759
2 // { dg-do compile { target c++17 } }
3
4 namespace N {
5 template <typename T>
6 struct X{ X(int); }; // { dg-message "declared here" }
7 }
8
9 using N::X;
10
11 X(int) -> X<int>; // { dg-error "must be declared in the same scope as" }