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
/
friend33.C
blob
5feec1a06d76137ea8b44839ad0c1fd8b4e35528
1
// Build don't run:
2
// Special g++ Options: -g
3
4
template <class P1>
5
struct S1
6
{
7
struct SS1
8
{
9
};
10
friend void Foo (const SS1& ss1)
11
{
12
}
13
};
14
15
template <class P1>
16
void Foo(const S1<P1>& s1)
17
{
18
typedef typename S1<P1>::SS1 TYPE;
19
TYPE t;
20
Foo(t);
21
}
22
23
int main ()
24
{
25
S1<double> obj;
26
Foo(obj);
27
}
28