re PR c++/17324 (Error: symbol `bRKNS0_IT_SD_EE' is already defined)
authorMark Mitchell <mark@codesourcery.com>
Wed, 15 Sep 2004 03:22:19 +0000 (03:22 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Wed, 15 Sep 2004 03:22:19 +0000 (03:22 +0000)
commitbb5ecf29592e396bce6f8b793430d094d65c5309
tree6e613c96b5981e4ad2d16f09f4f2e2c54a8bfdd4
parent391f9afbd2d6ac8dd691c6d79a8817c63a637ca8
re PR c++/17324 (Error: symbol `bRKNS0_IT_SD_EE' is already defined)

PR c++/17324
* mangle.c (partially_mangled_name): New variable.
(partially_mangled_name_len): Likewise.
(save_partially_mangled_name): New function.
(restore_partially_mangled_name): Likewise.
(write_encoding): Save and restore partially mangled names around
calls to get_mostly_instantiated_function_type.
(write_unqualified_name): Likewise.

PR c++/17324
* g++.dg/template/mangle1.C: New test.

From-SVN: r87530
gcc/cp/ChangeLog
gcc/cp/mangle.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/mangle1.C [new file with mode: 0644]