Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
other
/
error20.C
blob: dab6de40e4f363a051ff0ded7f057bc13a1d6c57 [
file
] [
log
] [
blame
]
// PR c++/34275
// { dg-do compile }
struct
A
// { dg-message "operator=|no known conversion" }
{
virtual
A foo
();
};
void
bar
(
A
&
a
)
{
a
.
foo
()
=
0
;
// { dg-error "operand types are 'A' and 'int'" }
}