[Bug c++/43376] template member function instantiations are not hidden if the class has default visibility and -fvisibility-ms-compat is used

2010-03-17 Thread fjoe at samodelkin dot net
--- Comment #3 from fjoe at samodelkin dot net 2010-03-17 07:09 --- The source of library "bar" is: --- cut here --- #include "foo.h" #ifdef _MSC_VER #define BAR_API __declspec(dllexport) #else #define BAR_API __attribute__((visibility("default&quo

[Bug c++/43376] template member function instantiations are not hidden if the class has default visibility and -fvisibility-ms-compat is used

2010-03-15 Thread fjoe at samodelkin dot net
--- Comment #1 from fjoe at samodelkin dot net 2010-03-15 11:32 --- In the last example above I mean that there is shared library foo with interface declared in foo.h and it is used in another shared library bar. And bar will have unnecessary template instantiations visible even if

[Bug c++/43376] New: template member function instantiations are not hidden if the class has default visibility and -fvisibility-ms-compat is used

2010-03-15 Thread fjoe at samodelkin dot net
-fvisibility-ms- compat is used Product: gcc Version: unknown Status: UNCONFIRMED Severity: major Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: fjoe at samodelkin dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43376