aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/memtemp74.C
blob: e99103f40e6d343916825d9ff36b24b1c0db674e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Build don't link:

template <class T>
class S
{
protected:
  template <class U>
  void f(U); // ERROR - is protected

private:
  template <class U>
  void g(U); // ERROR - is private
};


void f()
{
  S<double> s;
  s.f(3); // ERROR - within this context
  s.g(2.0); // ERROR - within this context
}