This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11204] New: Link error when invoking non-implicit c'tor by hand
- From: "meinlschmidt at informatik dot uni-erlangen dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Jun 2003 10:06:47 -0000
- Subject: [Bug c++/11204] New: Link error when invoking non-implicit c'tor by hand
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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());
}