The code: struct foo { foo(int) {} foo(int) {} }; gets you: ~/ootbc/members/src$ g++ foo.cc foo.cc:3: error: `foo::foo(int)' and `foo::foo(int)' cannot be overloaded
The diagnostic should contain the line number of the colliding declaration. In my real code the collider was inside a macro three pages away :-( Ivan -- Summary: Poor diagnostic Product: gcc Version: 3.4.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: igodard at pacbell dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24499