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
/
repo1.C
blob
f57b2c22fd05e3076650ed2070e254b616b0a9c5
1
// Bug: g++ complains about duplicate explicit instantiations with -frepo.
2
// From Jason Merrill <jason@cygnus.com>
3
4
// Build then link:
5
// Special g++ Options: -frepo
6
7
template <class T> struct A {
8
virtual ~A () { }
9
};
10
11
template <class T> void g (T t) { }
12
13
template class A<int>;
14
15
int main ()
16
{
17
g (42);
18
}