This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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: 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





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