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
Reset branch to trunk.
[official-gcc.git]
/
trunk
/
gcc
/
testsuite
/
g++.dg
/
lookup
/
koenig12.C
blob
c1358993909fe55afe1572757bcf8c372f1f938f
1
// PR c++/41305
2
// We got into infinite recursion instantiating the B<U> series.
3
4
template <class T> struct A { };
5
template <class T, class U = A<T> > struct B;
6
template <class T> struct C { };
7
8
template <class T, class U> struct B: C<B<U> >
9
{
10
friend void f(B) { }
11
};
12
13
B<int> b;
14
15
int main()
16
{
17
f(b);
18
}