diff options
author | Mark Mitchell <mark@codesourcery.com> | 2004-12-22 03:34:55 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2004-12-22 03:34:55 +0000 |
commit | 943e3eded2ab29d35a266cb0d7bfcbda9d96e038 (patch) | |
tree | 3c4219827d7473d470169c52b58780a7e3078422 /gcc/cp/tree.c | |
parent | be99edf8839b914004bc3f96f5acdc515198db86 (diff) | |
download | gcc-943e3eded2ab29d35a266cb0d7bfcbda9d96e038.zip gcc-943e3eded2ab29d35a266cb0d7bfcbda9d96e038.tar.gz gcc-943e3eded2ab29d35a266cb0d7bfcbda9d96e038.tar.bz2 |
re PR c++/18378 (ICE when returning a copy of a packed member)
PR c++/18378
* call.c (convert_like_real): Do not permit the use of a copy
constructor to copy a packed field.
PR c++/17413
* decl.c (grokdeclarator): Return error_mark_node, not
void_type_node, to indicate errors.
* parser.c (cp_parser_template_parameter_list): Robustify.
(cp_parser_template_parameter): Likewise.
PR c++/19034
* tree.c (cp_tree_equal): Handle OVERLOAD.
PR c++/18378
* g++.dg/ext/packed8.C: New test.
PR c++/13268
* g++.dg/template/crash31.C: New test.
PR c++/19034
* g++.dg/template/crash30.C: New test.
From-SVN: r92486
Diffstat (limited to 'gcc/cp/tree.c')
-rw-r--r-- | gcc/cp/tree.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c index a4b470e..2b6ef71 100644 --- a/gcc/cp/tree.c +++ b/gcc/cp/tree.c @@ -1544,6 +1544,11 @@ cp_tree_equal (tree t1, tree t2) return same_type_p (PTRMEM_CST_CLASS (t1), PTRMEM_CST_CLASS (t2)); + case OVERLOAD: + if (OVL_FUNCTION (t1) != OVL_FUNCTION (t2)) + return false; + return cp_tree_equal (OVL_CHAIN (t1), OVL_CHAIN (t2)); + default: break; } |