Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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 "" }
}