aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/parse/tmpl-outside2.C
blob: 21f1ac04fbe59aecd22bebd9d31ae56a081fad3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// PR c++/50080

template <typename T>
struct A
{
  template <typename U>
  struct B {};
};

template <typename T>
void test()
{
  typename A<T>::template B<int> b;
}

int main()
{
  typename A<double>::template B<int> b; // { dg-error "template|expected" "" { target { ! c++11 } } }
}