Debian Codegraph @

gcc/testsuite/g++.dg/overload/error8.C

raw
1 // PR c++/111160
2 // { dg-do compile { target c++11 } }
3
4 class TheClass {}; // { dg-error "discards|bind|discards|bind" }
5 void the_func() {
6 TheClass x;
7 volatile TheClass y;
8 (false ? x : x) = y; // { dg-error "ambiguous|ambiguous" }
9 }