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
PR c++/7176
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
memtemp64.C
blob
6185d3d60583b11bf6dcf0f1ae1518fa758820b4
1
// Build don't link:
2
3
template <class T>
4
struct S1 {};
5
6
template <class T>
7
void f(T);
8
9
template <class C>
10
struct S2
11
{
12
template <class T>
13
void f<S1<T> >(T) {} // ERROR - bad specialization.
14
};
15
16
17
template <class T>
18
struct S3
19
{
20
friend class S2<T>;
21
};