This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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]

Re: new warnings from basic_string


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


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