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++/31246] Strange -Wunreachable-code warning with _GLIBCXX_DEBUG



------- 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


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