OSDN Git Service

PR c++/50852
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 29 Nov 2012 20:16:46 +0000 (20:16 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 29 Nov 2012 20:16:46 +0000 (20:16 +0000)
commit0694636fc67a63bff5692869c72f7b463b199463
tree49f0baf22e9e0fd030caa00f95db31ed1b3de386
parentb4059388c8e5f355ce7eeb722d9161f1ae93c2c6
PR c++/50852
PR c++/53039
* tree.c (strip_typedefs_expr): New.
* cp-tree.h: Declare it.
* pt.c (convert_template_argument, unify): Use it.
* parser.c (cp_parser_template_declaration_after_export): Don't call
fixup_template_parms.

* cp-tree.h (TEMPLATE_PARM_NUM_SIBLINGS): Remove.
(struct template_parm_index_s): Remove num_siblings.
* pt.c (fixup_template_parms, fixup_template_parm_index): Remove.
(fixup_template_type_parm_type): Remove.
(build_template_parm_index): Remove num_siblings parm.
(process_template_parm): Likewise.
* parser.c (cp_parser_template_parameter_list): Adjust.
* tree.c (cp_tree_equal): Don't compare num_siblings.
* typeck.c (comp_template_parms_position): Likewise.

* pt.c (arg_from_parm_pack_p): Go back to using same_type_p or
cp_tree_equal.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@193955 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/parser.c
gcc/cp/pt.c
gcc/cp/tree.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/alias-decl-20.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/variadic133.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/param1.C
gcc/testsuite/g++.dg/template/typedef39.C [new file with mode: 0644]