repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
FSF GCC merge 02/23/03
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
memtemp74.C
blob
e99103f40e6d343916825d9ff36b24b1c0db674e
1
// Build don't link:
2
3
template <class T>
4
class S
5
{
6
protected:
7
template <class U>
8
void f(U); // ERROR - is protected
9
10
private:
11
template <class U>
12
void g(U); // ERROR - is private
13
};
14
15
16
void f()
17
{
18
S<double> s;
19
s.f(3); // ERROR - within this context
20
s.g(2.0); // ERROR - within this context
21
}