summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/defarg19.C
blob: 856980232f4557d53247cfeebb62108578607da7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// PR c++/53856

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

template<typename T = int>
struct A<T>::B  // { dg-error "default argument" }
{
  int i;
};

A<int>::B b = { };