https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116143
--- Comment #1 from David Malcolm <dmalcolm at gcc dot gnu.org> --- Sorry about this. Demangling, _ZNK22simple_diagnostic_path10num_eventsEv is simple_diagnostic_path::num_events() const which is a vfunc implemented in gcc/simple-diagnostic-path.o My guess is that nothing is using class simple_diagnostic_path in cc1, and thus the code for simple_diagnostic_path is being dropped by the linker, so it's not available to the plugin.