aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/decl.c
diff options
context:
space:
mode:
authorVolker Reichelt <reichelt@igpm.rwth-aachen.de>2006-04-19 17:36:59 +0000
committerVolker Reichelt <reichelt@gcc.gnu.org>2006-04-19 17:36:59 +0000
commitb815a6316cbd95ebdd3f049627db5932efc9c9b7 (patch)
tree1b1b416ba12653ba3a4a4523b30deb456d8b744f /gcc/cp/decl.c
parentd149fba0ff511eda85cb47a630ffc499ea5a8756 (diff)
downloadgcc-b815a6316cbd95ebdd3f049627db5932efc9c9b7.zip
gcc-b815a6316cbd95ebdd3f049627db5932efc9c9b7.tar.gz
gcc-b815a6316cbd95ebdd3f049627db5932efc9c9b7.tar.bz2
re PR c++/26036 (Treating a class object as a function with member variables causes hang)
PR c++/26036 * typeck.c (convert_arguments): Return error_mark_node instead of error_mark_list. * cp-tree.h (error_mark_list): Remove declaration. * decl.c (error_mark_list): Remove definition. (cxx_init_decl_processing): Do not initialize error_mark_list. * g++.dg/expr/call3.C: New test. From-SVN: r113087
Diffstat (limited to 'gcc/cp/decl.c')
-rw-r--r--gcc/cp/decl.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 9e101c1..215371a 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -106,9 +106,6 @@ static void initialize_local_var (tree, tree);
static void expand_static_init (tree, tree);
static tree next_initializable_field (tree);
-/* Erroneous argument lists can use this *IFF* they do not modify it. */
-tree error_mark_list;
-
/* The following symbols are subsumed in the cp_global_trees array, and
listed here individually for documentation purposes.
@@ -3118,9 +3115,6 @@ cxx_init_decl_processing (void)
/* Initially, C. */
current_lang_name = lang_name_c;
- error_mark_list = build_tree_list (error_mark_node, error_mark_node);
- TREE_TYPE (error_mark_list) = error_mark_node;
-
/* Create the `std' namespace. */
push_namespace (std_identifier);
std_node = current_namespace;