Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
pr28301.C
blob: a7a00847880d2baedbdaebe5e57a674a5b6865bc [
file
] [
log
] [
blame
]
// PR c++/28301
// { dg-do compile }
template
<typename>
struct
A
{
template
<int>
void
foo
()
};
// { dg-error "initializer" }
template
<>
struct
A
<void>
{
template
<int>
void
foo
();
};
void
bar
()
{
A
<void>
a
;
a
.
foo
<
0
>();
}