blob: bb7d7b3b078e08c4cb4cc4b3b69255cc3011aa52 [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'" }
// { dg-message "candidate" "candidate note" { target *-*-* } 11 }
}