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
Merge from mainline (gomp-merge-2005-02-26).
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
access11.C
blob
fb9782405bc6d7fda7a45dbededf5bd55882ed62
1
// { dg-do assemble }
2
// { dg-options "-w" }
3
// Origin: r.spatschek@fz-juelich.de
4
5
class A
6
{
7
private:
8
template <class T> void g(T t) {} // { dg-error "" } private
9
int i;
10
};
11
12
template <>
13
void A::g<int>(int t) { i = 1; }
14
15
int main()
16
{
17
A a;
18
19
a.g<int>(0); // { dg-error "" } private
20
}