This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: libstdc++/2921
- To: nobody at gcc dot gnu dot org
- Subject: Re: libstdc++/2921
- From: Phil Edwards <pedwards at disaster dot jaj dot com>
- Date: 27 May 2001 03:26:01 -0000
- Cc: gcc-prs at gcc dot gnu dot org,
- Reply-To: Phil Edwards <pedwards at disaster dot jaj dot com>
The following reply was made to PR libstdc++/2921; it has been noted by GNATS.
From: Phil Edwards <pedwards@disaster.jaj.com>
To: Petter Reinholdtsen <pere@hungry.com>
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: libstdc++/2921
Date: Sat, 26 May 2001 22:05:11 -0400
On Sat, May 26, 2001 at 05:56:01PM -0000, Petter Reinholdtsen wrote:
> Thanks for the suggestion on libstdc++-v3. I tested the GCC online commpiler
> and got this result with build 2001-05-26:
>
> Catched: St9exception
> Catched: St9bad_alloc
>
> At least this time the output is consistent, but I think
> 'std::exception' and 'std::bad_alloc' would be better choices. :-)
You're seeing the mangled names. In theory, if you ran those names through
the demangler (c++filt), you'd see the "human" names.
In practice, as of today, those aren't what c++filt is looking for, so
the demangler doesn't demangle them. The names themselves are correct,
but they're missing the 'local prefix':
% echo St9exception | ~/build/install-2001-05-25-3branch/bin/c++filt
St9exception
% echo _ZSt9exception | ~/build/install-2001-05-25-3branch/bin/c++filt
std::exception
Phil
--
pedwards at disaster dot jaj dot com | pme at sources dot redhat dot com
devphil at several other less interesting addresses in various dot domains
The gods do not protect fools. Fools are protected by more capable fools.