Re: [Bug c++/39208] New: Incorrect mangled name for function as template argument

2009-02-16 Thread Andrew Thomas Pinski
Yes this known I forgot the bug number but try with -fabi-version=0. Sent from my iPhone On Feb 16, 2009, at 2:07 PM, "dgregor at gcc dot gnu dot org" > wrote: Given the following code: template struct X { }; int f(int, int) { } void g(X) { } GCC produces the mangled name: _Z1g1XILZ1fi

[Bug c++/39208] New: Incorrect mangled name for function as template argument

2009-02-16 Thread dgregor at gcc dot gnu dot org
Given the following code: template struct X { }; int f(int, int) { } void g(X) { } GCC produces the mangled name: _Z1g1XILZ1fiiEE for the function 'g'. However, the correct mangled name is: _Z1g1XIL_Z1fiiEE GCC is missing the '_' prior to the 'Z' in the mangled name of the template