This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/31246] Strange -Wunreachable-code warning with _GLIBCXX_DEBUG
- From: "gdr at cs dot tamu dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Mar 2007 23:35:28 -0000
- Subject: [Bug c++/31246] Strange -Wunreachable-code warning with _GLIBCXX_DEBUG
- References: <bug-31246-1902@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from gdr at cs dot tamu dot edu 2007-03-17 23:35 -------
Subject: Re: Strange -Wunreachable-code warning with _GLIBCXX_DEBUG
"pcarlini at suse dot de" <gcc-bugzilla@gcc.gnu.org> writes:
| Note, however, that, as far as I can see, such try/catch are *not* in the
| library code proper, but *all* synthesized by the C++ front-end. Is it so
weird
| to imagine for the C++ front-end to automatically suppress warning in such
| case? I think this is a very general issue, which goes even beyond the
already
| general issue about pragma system headers: if the user writes such code and
| sees such kind of warnings becomes *completely* confused. Gaby, do you have
an
| opinion?
I agree with you Paolo. The front-end should make sure that its
artefacts don't adversily affect diagnostics we emit.
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31246