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++.jason
/
template1.C
blob
359c8f16543546b061a2edcc6ae856fc0b105061
1
// { dg-do assemble }
2
// PRMS Id: 4688
3
// Bug: g++ can't deal with templates instantiated within extern "C".
4
5
class Gnaf {
6
public:
7
virtual int invariant ();
8
};
9
10
template <class T> class Array : public Gnaf {
11
public:
12
virtual int invariant();
13
};
14
15
extern "C"
16
int foo()
17
{
18
Array<int> toConv;
19
return 0;
20
}