This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: why are stl template classes not mangled as other classes and templates
On Mon, Nov 26, 2007 at 02:01:30PM -0500, Daniel Jacobowitz wrote:
> On Mon, Nov 26, 2007 at 10:40:35AM -0800, Joe Buck wrote:
> > On Mon, Nov 26, 2007 at 01:33:54PM -0500, Stephane Hockenhull wrote:
> > >
> > > hi, it seem stl templates are not mangled as other classes and templates
> > >
> > > I was wondering why and where in the g++ source code is that special case
> > > implemented?
> > >
> > > it seem to cause a problem with -fleading-underscore
> >
> > AFAIK there is no special case, however there might be a bug lurking
> > somewhere. Do you have a specific case where -fleading-underscore messes
> > up?
>
> There are a few special cases, e.g. for std::string and
> std::basic_string; the C++ ABI documents have the details.
>
> _ZSi -> std::basic_istream<char, std::char_traits<char> >
Oh, right, I forgot about that one.
My guess is that no one thought about the interaction between this special
case and -fleading-underscore.