2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / memtemp74.C
blob1b64a65095aebe30311ede7ade4b81db2b9cb752
1 // { dg-do assemble  }
3 template <class T>
4 class S
6 protected:
7   template <class U>
8   void f(U); // { dg-error "" } is protected
10 private:
11   template <class U>
12   void g(U); // { dg-error "" } is private
16 void f()
18   S<double> s;
19   s.f(3); // { dg-error "" } within this context
20   s.g(2.0); // { dg-error "" } within this context