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
/
crash34.C
blob
31f89c8cc1661eceb75ea54ada5931c0a7e5c124
1
// { dg-do assemble }
2
// Origin: Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
3
4
template <class T>
5
class A {
6
public:
7
class B { };
8
class C: public B {
9
public:
10
C(A&):B() { }
11
};
12
C f() { return C(*this); }
13
};
14
15
int
16
main()
17
{
18
A<int> a;
19
a.f();
20
}