FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / memtemp74.C
blobe99103f40e6d343916825d9ff36b24b1c0db674e
1 // Build don't link:
3 template <class T>
4 class S
6 protected:
7   template <class U>
8   void f(U); // ERROR - is protected
10 private:
11   template <class U>
12   void g(U); // ERROR - is private
16 void f()
18   S<double> s;
19   s.f(3); // ERROR - within this context
20   s.g(2.0); // ERROR - within this context