]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/g++.dg/cpp0x/explicit6.C
PR c++/92590 - wrong handling of inherited default ctor.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / explicit6.C
1 // PR c++/47080
2 // { dg-options "" }
3 // { dg-do compile { target c++11 } }
4
5 struct A {
6 explicit operator int(); // { dg-message "qualification conversion" }
7 };
8
9 int main() {
10 bool b((A())); // { dg-error "invalid user-defined" }
11 !A(); // { dg-error "" }
12 }
This page took 0.039431 seconds and 5 git commands to generate.