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
Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git]
/
old-autovect-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
spec6.C
blob
276e398262e0511c9ca3d2220152a8d5378233e2
1
// { dg-do assemble }
2
3
struct S1
4
{
5
template <class T>
6
void f(T t1, T t2);
7
};
8
9
10
template <>
11
void S1::f(int i1, int i2);
12
13
template <class U>
14
struct S2
15
{
16
template <class T>
17
void f(T t1, T t2);
18
};
19
20
template <>
21
template <>
22
void S2<char>::f(int i1, int i2);
23
24
void h()
25
{
26
S1 s1;
27
s1.f(3, 'c'); // { dg-error "" } no matching function
28
29
S2<char> s2;
30
s2.f(3, 'c'); // { dg-error "" } no matching function
31
}