This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11454] pedantic causes errors with exceptions, were warnings under 2.95
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Jul 2003 23:18:19 -0000
- Subject: [Bug c++/11454] pedantic causes errors with exceptions, were warnings under 2.95
- References: <20030707182744.11454.kirkm@altera.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11454
bangerth at dealii dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
------- Additional Comments From bangerth at dealii dot org 2003-07-07 23:18 -------
This has nothing to do with -pedantic or not: present gcc mainline issues
an error unconditionally. The reason is simply that the language standard
says that these declarations are incompatible and the code is thus
invalid. This is, by the way, the same behavior that for example
Intel's icc shows.
The solution is and must be to leave the declaration of functions to
the system headers and not muck with it. Another possibility, if absolutely
necessary, is to include header files with -isystem instead of -I, since this
shuts down certain checks, such as this one.
W.