new warnings from basic_string
Ian Lance Taylor
ian@airs.com
Fri Jan 28 15:30:00 GMT 2005
larsbj@gullik.net (Lars Gullik Bjønnes) writes:
> | I think the patch I just submitted will also fix PR 16558, as it
> | happens. I fixed the existing handling of TRY_FINALLY_EXPR.
>
> Note that I see this with -fno-exceptions as well.
>
> I don't know if that changes anything.
TRY_FINALLY_EXPR is used for many things other than exceptions, such
as forcing local variables to be destroyed when returning from a
function.
With the patch at
http://gcc.gnu.org/ml/gcc-patches/2005-01/msg02098.html
I don't see any warning for
#define _GLIBCXX_DEBUG 1
#include <map>
void foo()
{
typedef std::map<int, int> MangledMap;
MangledMap mangledNames;
MangledMap::const_iterator it = mangledNames.find(0);
}
with or without -fno-exceptions, with -O0, -O1, -O2, -O3.
Ian
More information about the Libstdc++
mailing list