This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug sanitizer/80963] UBSAN false positive with visibility=hidden


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80963

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
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 this you need to have the visibility default attribute on the class
Archive .

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]