This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [4.0 PATCH] Fix for PR21951
- From: Gerald Pfeifer <gerald at pfeifer dot com>
- To: Dan Kegel <dank at kegel dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Jan Hubicka <jh at suse dot cz>
- Date: Sun, 12 Jun 2005 19:24:24 +0200 (CEST)
- Subject: Re: [4.0 PATCH] Fix for PR21951
- References: <42AB85A8.2090906@kegel.com>
On Sat, 11 Jun 2005, Dan Kegel wrote:
> C++ programs compiled with -fno-exceptions fail with gcc-4.0.0
> because of false positive warnings about control reaching
> the end of a inlined function without returning a value
> (see http://gcc.gnu.org/PR21951).
Yes, that's a bad one.
> PR c++/21951: avoid appearing to hit end of function when compiled
> with -fno-exceptions
> * libstdc++-v3/include/bits/stl_vector.h
> * libstdc++-v3/include/bits/stl_uninitialized.h
> * libstdc++-v3/include/ext/rope
> * libstdc++-v3/include/ext/memory
> * libstdc++-v3/include/ext/hashtable.h
Either this, or someone tries to convince Honza to backport his fixes
from mainline. (I believe it was Honza who fixed this by virtue of his
inline work, but I may be wrong.)
Gerald