repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
other
/
error10.C
blob
d8025801f1370a7f56d6db6ef4de4ee561d4294b
1
// PR c++/21930
2
// Test case by Volker Reichelt
3
// { dg-do compile }
4
5
template<int> struct A {};
6
7
template<int N>
8
void foo(const A<N> &a)
9
{ -A<N>(a); } // { dg-error "\\(\\(const A<0>\\*\\)a\\)" "" }
10
11
void bar()
12
{
13
foo(A<0>()); // { dg-error "instantiated from here" "" }
14
}
15