This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13854] New: g++ -pedantic messes up library file definitions
- From: "gcc at magfr dot user dot lysator dot liu dot se" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Jan 2004 11:50:40 -0000
- Subject: [Bug c++/13854] New: g++ -pedantic messes up library file definitions
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
If more than one instance of the extern declaration for a function
from a standard header are present then g++ fails with
fil.C:2: error: declaration of `char* rindex(const char*, int) throw ()' throws different exceptions
fil.C:1: error: than previous declaration `char* rindex(const char*, int)'
--
Summary: g++ -pedantic messes up library file definitions
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: gcc at magfr dot user dot lysator dot liu dot se
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13854