public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/31459] New: No #pragma GCC visibility {push/pop} (default) in <stdexcept> and <string>
@ 2007-04-03 14:14 rjarrett at mathworks dot com
2007-04-03 16:37 ` [Bug c++/31459] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: rjarrett at mathworks dot com @ 2007-04-03 14:14 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/31459] No #pragma GCC visibility {push/pop} (default) in <stdexcept> and <string>
2007-04-03 14:14 [Bug c++/31459] New: No #pragma GCC visibility {push/pop} (default) in <stdexcept> and <string> rjarrett at mathworks dot com
@ 2007-04-03 16:37 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-04-03 16:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2007-04-03 17:37 -------
Actually this is fixed in 4.2.0, see PR 19664.
*** This bug has been marked as a duplicate of 19664 ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31459
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-04-03 16:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-03 14:14 [Bug c++/31459] New: No #pragma GCC visibility {push/pop} (default) in <stdexcept> and <string> rjarrett at mathworks dot com
2007-04-03 16:37 ` [Bug c++/31459] " pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).