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
2014-01-30 Alangi Derick <alangiderick@gmail.com>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
spec1.C
blob
27996377f6b7d8176f2495d22011887f3471a58a
1
// { dg-do compile }
2
3
// Origin: <schmid@snake.iap.physik.tu-darmstadt.de>
4
5
// Bug: ICE during invalid instantiation of member function
6
// which enclosing class is specialized.
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
};
19
20
template
21
void A<int>::f(int); // { dg-error "not match" }