blob: bb7d7b3b078e08c4cb4cc4b3b69255cc3011aa52 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// 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 }
}
|