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
c++: Improve errors parsing a braced list [PR101232]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
pr28301.C
blob
a7a00847880d2baedbdaebe5e57a674a5b6865bc
1
// PR c++/28301
2
// { dg-do compile }
3
4
template<typename> struct A
5
{
6
template<int> void foo()
7
}; // { dg-error "initializer" }
8
9
template<> struct A<void>
10
{
11
template<int> void foo();
12
};
13
14
void bar()
15
{
16
A<void> a;
17
a.foo<0>();
18
}