1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
// { dg-do assemble } // prms-id: 8460 class A { public: A(); A(int) { } A(const A&) { } private: }; int main() { A a; a.A(1); // { dg-error "" } cannot find name this way }