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