[Bug c++/58591] GCC emits bad mangling for template function with a parameter pack

2013-10-04 Thread ccoutant at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58591

Cary Coutant  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |DUPLICATE

--- Comment #4 from Cary Coutant  ---
Never mind, I see now that this was fixed with -fabi-version=6.

*** This bug has been marked as a duplicate of bug 51322 ***


[Bug c++/58591] GCC emits bad mangling for template function with a parameter pack

2013-10-04 Thread ccoutant at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58591

--- Comment #3 from Cary Coutant  ---
I think the template argument descriptors should be "I1AJiiEE". This produces a
demangling that looks right:

$ c++filt _Z9ConstructI1AJiiEEvPT_DpOT0_
void Construct(A*, int&&, int&&)

And running this test case through LLVM, that's the mangled name it produces.


[Bug c++/58591] GCC emits bad mangling for template function with a parameter pack

2013-10-01 Thread ccoutant at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58591

--- Comment #2 from Cary Coutant  ---
I *think* the correct mangling should be this:

$ c++filt _Z9ConstructI1AiiEvPT_DpOT0_
void Construct(A*, (int&&)...)


[Bug c++/58591] GCC emits bad mangling for template function with a parameter pack

2013-10-01 Thread ppluzhnikov at google dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58591

--- Comment #1 from Paul Pluzhnikov  ---
Google ref: b/10860844