Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / g++.dg / other / error31.C
blob95c9d737413b398fbb59657761ebfd853ab4e6e7
1 // PR c++/35335
2 // { dg-do compile }
3 // { dg-options "" }
4 // { dg-bogus "not supported by" "" { target *-*-* } 0 }
6 struct A {};            // { dg-message "operator=|no known conversion" }
8 void
9 foo ()
11   A a;
12   a = ({ { 1; } });     // { dg-error "no match for" }
13   // { dg-message "candidate" "candidate note" { target *-*-* } 12 }