This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/9450: incorrect mangled name for scope resolution template argument
- From: Catherine Morton <camorton at sympatico dot ca>
- To: gcc-gnats at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, catherin at ca dot ibm dot com, nobody at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org
- Date: Mon, 27 Jan 2003 12:05:34 -0500
- Subject: Re: c++/9450: incorrect mangled name for scope resolution template argument
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9450
gcc generates exactly the same mangled name for these 2 testcases
// ----------------- t1 --------------------
struct A5 {int i;};
template <int A5::*p> void f5(int) {}
template <class T>
void g5() {f5<&T::i>(0);}
int main(void)
{
g5<A5>();
}
// ----------------------------------------
name:
_Z2f5IXadsr2A5NS0_1iEEEvi
// ---------------- t2 --------------------
struct A5 {int i;};
template <int A5::*p> void f5(int) {}
void g5() {f5<&A5::i>(0);}
// ----------------------------------------
name:
_Z2f5IXadsr2A5NS0_1iEEEvi