re PR c++/13241 ([ABI] Incorrect mangling of template arguments)
authorNathan Sidwell <nathan@codesourcery.com>
Mon, 15 Dec 2003 11:57:30 +0000 (11:57 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Mon, 15 Dec 2003 11:57:30 +0000 (11:57 +0000)
commit5fd80fbc3ba36fba8c0ec6c0f8509ff44e0a9fdd
tree1052eda794a2870ee8942d5cf1a622bd1affe197
parent209db2bf05a5830792bc1a2f06c8fedf21285304
re PR c++/13241 ([ABI] Incorrect mangling of template arguments)

cp:
PR c++/13241
C++ ABI change. Mangling of symbols in expressions.
* mangle.c (write_mangled_name): Add top_level flag. Rework for
nested and unnested mangling. Deal with abi version 1 and version
2 differences.
(write_expression): Adjust write_mangled_name call.
(mangle_decl_string): Use write_mangled_name for all non-type decls.
testsuite:
PR c++/13241
* g++.dg/abi/mangle18-1.C: New test.
* g++.dg/abi/mangle18-2.C: New test.

From-SVN: r74628
gcc/cp/ChangeLog
gcc/cp/mangle.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/abi/mangle18-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/abi/mangle18-2.C [new file with mode: 0644]