Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
parse
/
template28.C
blob: bfd8af17b670488be892feba33bf68f6767dbea1 [
file
] [
log
] [
blame
]
// PR c++/79056
template
<class>
struct
A
{};
template
<
class
T
>
void
foo
(
A
<
T
>=
A
<
T
>())
{}
// { dg-error "24:variable or field .foo. declared void" }
// { dg-error "template" "" { target *-*-* } .-1 }
void
bar
()
{
foo
(
A
<int>
());
// { dg-error "" }
}