PR lto/84212 - -Wno-* does not disable warnings from -flto link stage
[official-gcc.git] / gcc / testsuite / g++.dg / tc1 / dr217-2.C
blob75c40f8b2093b954ab925d829290229e4a36e2e9
1 // { dg-do compile }
2 // DR217: Default arguments for non-template member functions of class 
3 //  templates 
5 template <class T>
6 struct S
8   static void foo (int);
9 };
11 template <class T>
12 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" }
13 { }