2013-09-12 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / parse / error19.C
blob6d84f7142463e0a559b157eee493adff29c09a83
1 // { dg-options "-fshow-column -fmessage-length=0   -ansi -pedantic-errors -Wno-long-long " }
2 // PR C++/17867
4 struct A                        // { dg-message "8:operator=|no known conversion for implicit" }
6   A(int);
7 };
9 const A& foo();
11 void bar()
13   foo()=A(0); // { dg-error "8:no match for 'operator='" }
14   // { dg-message "candidate" "candidate note" { target *-*-* } 13 }