This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/11454] pedantic causes errors with exceptions, were warnings under 2.95


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]