]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/g++.dg/parse/error19.C
call.c (struct conversion_info): Rename 'from_type' to 'from'.
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / parse / error19.C
CommitLineData
2b7a3abf 1// { dg-options "-fshow-column -fmessage-length=0 -ansi -pedantic-errors -Wno-long-long " }
17a27b4f
MM
2// PR C++/17867
3
89606913 4struct A // { dg-message "8:operator=" }
d4a2b486 5{
17a27b4f
MM
6 A(int);
7};
8
9const A& foo();
10
11void bar()
12{
89606913 13 foo()=A(0); // { dg-error "8:no match|const" }
17a27b4f 14}