repo.or.cz
/
official-gcc
/
graphite-test-results.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
spec2.C
blob
de0fe4c151122bcc0f4a0fc690083869bd91759b
1
// { dg-do compile }
2
3
// Origin: <schmid@snake.iap.physik.tu-darmstadt.de>
4
5
// Bug: Overloading of ordinary and template member function
6
// which enclosing class is specialized is not handled correctly.
7
8
template <class T>
9
struct A
10
{
11
void f(T) {}
12
};
13
14
template<>
15
struct A<int>
16
{
17
void f(int) {}
18
template <class T> void f(T) {}
19
};
20
21
template
22
void A<int>::f(int);