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
Update concepts branch to revision 131834
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
parse
/
explicit1.C
blob
35358749e1d082e9e85d913627497ecaf9ac20fe
1
// { dg-do compile }
2
3
// Origin: stefaandr@hotmail.com
4
5
// PR c++/12403: ICE when explicit specialization is not in
6
// namespace scope.
7
8
struct foo {
9
template<typename T> void bar (T &t) {}
10
template<> void bar<double>(double &t) {} // { dg-error "non-namespace|template|function" }
11
};