]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/g++.dg/other/error20.C
call.c (struct conversion_info): Rename 'from_type' to 'from'.
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / other / error20.C
CommitLineData
89ab8ba0
JJ
1// PR c++/34275
2// { dg-do compile }
3
feb6efc1 4struct A // { dg-message "operator=|no known conversion" }
d4a2b486 5{
89ab8ba0
JJ
6 virtual A foo ();
7};
8
9void bar (A& a)
10{
051b40ff 11 a.foo () = 0; // { dg-error "operand types are 'A' and 'int'" }
89ab8ba0 12}