[cfe-dev] GCC and Clang produce undefined references to functions with vague linkage

Rafael EspĂ­ndola rafael.espindola at gmail.com
Mon Jul 2 09:02:55 PDT 2012


> Yes, this indeed looks like (most probably my) bug in the constant folding
> code that now uses extern vtables.  I will fix it.  So we can not take
> comdat linkage decl from external vtable when we no longer have its body
> around, right?

Sounds about the fix John was describing, yes. You can produce a copy
of the comdat linkage decl (the destructor in this case) or  avoid
using the extern vtable and just produce an undefined reference to the
vtable itself.

> Honza

Thanks!
Rafael



More information about the cfe-dev mailing list