aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/tc1/dr217-2.C
blob: 75c40f8b2093b954ab925d829290229e4a36e2e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// { dg-do compile }
// DR217: Default arguments for non-template member functions of class 
//  templates 

template <class T>
struct S
{
  static void foo (int);
};

template <class T>
void S<T>::foo (int = 0)  // { dg-error "" "default arguments for parameters of member functions of class templates can be specified in the initial declaration only" }
{ }