re PR c++/14199 (Unjustified warning about unused variable)
authorMark Mitchell <mark@codesourcery.com>
Fri, 20 Feb 2004 08:57:33 +0000 (08:57 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 20 Feb 2004 08:57:33 +0000 (08:57 +0000)
commitc0694c4b781c1c4e961ef74f1a70c0df7a6b67b6
tree805d38b660862895cfdc82561ded42eea78f8a55
parent15316a6f7639a7173c375d8c3d0e24957982f27e
re PR c++/14199 (Unjustified warning about unused variable)

PR c++/14199
* pt.c (tsubst_copy): Call mark_used for a PARM_DECL.

PR c++/14173
* semantics.c (begin_class_definition): Set TYPE_PACKED correctly
for all type variants.

PR c++/14173
* g++.dg/ext/packed5.C: New test.

PR c++/14199
* g++.dg/warn/Wunused-5.C: New test.

PR c++/13927
* decl.c (duplicate_decls): Return error_mark_node for invalid
redeclarations.
* name-lookup.c (push_namespace): Ignore the return value from
pushdecl.
* pt.c (push_template_decl_real): Robustify.

PR c++/13927
* g++.dg/other/error8.C: Remove XFAIL markers.

From-SVN: r78159
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/name-lookup.c
gcc/cp/pt.c
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/packed5.C [new file with mode: 0644]
gcc/testsuite/g++.dg/other/error8.C
gcc/testsuite/g++.dg/warn/Wunused-5.C [new file with mode: 0644]