[Bug c++/103629] Possible miscompilation triggered by -fvisibility=hidden

2021-12-10 Thread mathieu.malaterre at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103629 --- Comment #8 from Mathieu Malaterre --- % more CMakeLists.txt main.cc Module.cc openvdb.cc Tree.h :: CMakeLists.txt :: cmake_minimum_required(VERSION 3.13) project(p) # only export limited set of symbols set(CMAKE_C_V

[Bug c++/103629] Possible miscompilation triggered by -fvisibility=hidden

2021-12-09 Thread mathieu.malaterre at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103629 --- Comment #7 from Mathieu Malaterre --- (In reply to Andrew Pinski from comment #6) > (In reply to Mathieu Malaterre from comment #5) > > (In reply to Andrew Pinski from comment #4) > > > (In reply to Mathieu Malaterre from comment #3) > > > >

[Bug c++/103629] Possible miscompilation triggered by -fvisibility=hidden

2021-12-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103629 --- Comment #6 from Andrew Pinski --- (In reply to Mathieu Malaterre from comment #5) > (In reply to Andrew Pinski from comment #4) > > (In reply to Mathieu Malaterre from comment #3) > > > $ export CXXFLAGS=-fvisibility=hidden > > > > Yes you

[Bug c++/103629] Possible miscompilation triggered by -fvisibility=hidden

2021-12-09 Thread mathieu.malaterre at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103629 --- Comment #5 from Mathieu Malaterre --- (In reply to Andrew Pinski from comment #4) > (In reply to Mathieu Malaterre from comment #3) > > $ export CXXFLAGS=-fvisibility=hidden > > Yes you can't just use -fvisibility=hidden without the source

[Bug c++/103629] Possible miscompilation triggered by -fvisibility=hidden

2021-12-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103629 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/103629] Possible miscompilation triggered by -fvisibility=hidden

2021-12-09 Thread mathieu.malaterre at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103629 --- Comment #3 from Mathieu Malaterre --- Steps to reproduce without a full Debian environement: ``` $ wget http://deb.debian.org/debian/pool/main/o/openvdb/openvdb_8.1.0.orig.tar.xz $ tar xf openvdb_8.1.0.orig.tar.xz $ cd openvdb-8.1.0 $ mkdir

[Bug c++/103629] Possible miscompilation triggered by -fvisibility=hidden

2021-12-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103629 --- Comment #2 from Andrew Pinski --- -fvisibility=hidden hides typeinfo so it could be possibility of having two typeinfo for the same class in if not used correctly.

[Bug c++/103629] Possible miscompilation triggered by -fvisibility=hidden

2021-12-09 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103629 Martin Liška changed: What|Removed |Added CC||marxin at gcc dot gnu.org --- Comment #1