This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/31459] New: No #pragma GCC visibility {push/pop} (default) in <stdexcept> and <string>
- From: "rjarrett at mathworks dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Apr 2007 14:14:04 -0000
- Subject: [Bug c++/31459] New: No #pragma GCC visibility {push/pop} (default) in <stdexcept> and <string>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Generic header defect observed on both x86 and x86_64
Missing "#pragma GCC visibility push(default)" and "#pragma GCC visibility
pop" directives wrapped around the versions of <stdexcept> and <string> that
ship with GCC 4.0 - 4.2. See for example <new> or <exception>, which are
properly encased.
Add #pragma GCC visibility push(default) and
#pragma GCC visibility pop(default) to string and stdexcept
>From new
...
#pragma GCC visibility push(default)
extern "C++" {
...
} // extern "C++"
#pragma GCC visibility pop
....
Workaround:
create a include directory with files 'string' and 'stdexcept' and alter your
include path to ssearch this directory first.
string:
#pragma GCC system_header
#pragma GCC visibility push(default)
#include_next <string>
#pragma GCC visibility pop
--
Summary: No #pragma GCC visibility {push/pop} (default) in
<stdexcept> and <string>
Product: gcc
Version: 4.1.1
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rjarrett at mathworks dot com
GCC build triplet: x86_64-unknown-linux-gnu
GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31459