re PR c++/9043 ([ABI] incorrect name mangling for array dimension in template function)
authorNathan Sidwell <nathan@gcc.gnu.org>
Tue, 16 Dec 2003 19:50:54 +0000 (19:50 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Tue, 16 Dec 2003 19:50:54 +0000 (19:50 +0000)
commitd63b5e9f25067b433a4dec4dea8539170761fcd6
tree0fc4b9688b90a52b69a422edafa5f8c65e65968e
parent28690784e2e718c23f02e4e8ec1a18417dd41e08
re PR c++/9043 ([ABI] incorrect name mangling for array dimension in template function)

cp:
PR c++/9043
C++ ABI change: Mangling array indices in templates.
* decl.c (compute_array_index_type): Reorganize for earlier
template errors. Use value_dependent_expression_p for abi-2.
* mangle.c (write_array_type): Check broken mangling for
expression indices on abi-1
testsuite:
PR c++/9043
* g++.dg/abi/mangle20-1.C: New test.
* g++.dg/abi/mangle20-2.C: New test.

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