aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/overload/error8.C
blob: a7e745860e03c95cd8274d0db3b2f211b24adad0 (plain)
1
2
3
4
5
6
7
8
9
// PR c++/111160
// { dg-do compile { target c++11 } }

class TheClass {}; // { dg-error "discards|bind|discards|bind" }
void the_func() {
  TheClass x;
  volatile TheClass y;
  (false ? x : x) = y; // { dg-error "ambiguous|ambiguous" }
}