https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80963
--- Comment #5 from Jan Engelhardt ---
>Where would those magic numbers come from? We don't have anything like that.
Maybe something similar to .build-id?, i.e. randomly-generated IDs (per .so)
that merely serve to distinguish two structs.
>>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80963
--- Comment #4 from Jakub Jelinek ---
(In reply to Jan Engelhardt from comment #3)
> The question is more like - can it be made to work even if (In reply to
> Andrew Pinski from comment #1)
> >
> > That is Archive in the shared library and in th
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80963
--- Comment #3 from Jan Engelhardt ---
The question is more like - can it be made to work even if (In reply to Andrew
Pinski from comment #1)
>
> That is Archive in the shared library and in the main executable are
> considered two different cla
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80963
--- Comment #2 from Andrew Pinski ---
(In reply to Andrew Pinski from comment #1)
> To fix this you need to have the visibility default attribute on the class
> Archive .
And not just on factory.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80963
--- Comment #1 from Andrew Pinski ---
I think the error message is correct as the class has a linkage of hidden in
the shared library.
That is Archive in the shared library and in the main executable are considered
two different classes.
To fix