☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
overload
/
error8.C
☽
☼
gcc/testsuite/g++.dg/overload/error8.C
code
plain
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
}