aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp1z/class-deduction72.C
blob: 60c559907a31437da3d2c7476f8acc11daed4ebe (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/91759
// { dg-do compile { target c++17 } }

namespace N {
  template <typename T>
  struct X{ X(int); };	// { dg-message "declared here" }
}

using N::X;

X(int) -> X<int>;	// { dg-error "must be declared in the same scope as" }