aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/decl.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2004-12-22 03:34:55 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2004-12-22 03:34:55 +0000
commit943e3eded2ab29d35a266cb0d7bfcbda9d96e038 (patch)
tree3c4219827d7473d470169c52b58780a7e3078422 /gcc/cp/decl.c
parentbe99edf8839b914004bc3f96f5acdc515198db86 (diff)
downloadgcc-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/decl.c')
-rw-r--r--gcc/cp/decl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index ed0604c..be1addd 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -6745,7 +6745,7 @@ grokdeclarator (const cp_declarator *declarator,
&& ! (ctype && !declspecs->any_specifiers_p))
{
error ("declaration of %qD as non-function", dname);
- return void_type_node;
+ return error_mark_node;
}
/* Anything declared one level down from the top level