[Bug c++/11204] New: Link error when invoking non-implicit c'tor by hand

meinlschmidt@informatik.uni-erlangen.de gcc-bugzilla@gcc.gnu.org
Mon Jun 16 10:06:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11204

           Summary: Link error when invoking non-implicit c'tor by hand
           Product: gcc
           Version: 3.2.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: meinlschmidt@informatik.uni-erlangen.de
                CC: gcc-bugs@gcc.gnu.org

// gcc -DBUG hitTheBug.C gives: 
// undefined reference to `__gxx_personality_v0' 
// with gcc 3.2.2 and gcc 3.3, 
// but not with gcc 2.95.3 and SGI CC. 
// gcc hitTheBug.C (without -DBUG) works OK 
 
class Foo { 
public: 
#ifdef BUG 
  Foo() {} 
#endif 
}; 
 
void thud(const Foo &f) {} 
 
main() 
{ 
  thud(Foo()); 
}



More information about the Gcc-bugs mailing list