GCC and Clang produce undefined references to functions with vague linkage

Alexandre Oliva aoliva@redhat.com
Mon Jul 2 15:48:00 GMT 2012


On Jun 28, 2012, Rafael Espíndola <rafael.espindola@gmail.com> wrote:

> Unfortunately, this found a bug in both gcc and clang (or in the
> itanium ABI, it is not very clear). The testcase is

not well-formed C++, for it violates the one-definition rule in that it
*lacks* a definition for the virtual member function foo::~foo().  Does
it make any difference if you add a definition?

-- 
Alexandre Oliva, freedom fighter    http://FSFLA.org/~lxoliva/
You must be the change you wish to see in the world. -- Gandhi
Be Free! -- http://FSFLA.org/   FSF Latin America board member
Free Software Evangelist      Red Hat Brazil Compiler Engineer



More information about the Gcc mailing list