aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.c
diff options
context:
space:
mode:
authorVolker Reichelt <reichelt@igpm.rwth-aachen.de>2006-12-01 21:28:35 +0000
committerVolker Reichelt <reichelt@gcc.gnu.org>2006-12-01 21:28:35 +0000
commitd8e1d61976e33667ed0d9f8ae6f9619076ecad8a (patch)
tree18525e5c1cc1ec6e5c44fa46a35ae45b101eb0c1 /gcc/c-common.c
parent07b3bbf2007bb9fab8b6c08321abf9c2cc7a2443 (diff)
downloadgcc-d8e1d61976e33667ed0d9f8ae6f9619076ecad8a.zip
gcc-d8e1d61976e33667ed0d9f8ae6f9619076ecad8a.tar.gz
gcc-d8e1d61976e33667ed0d9f8ae6f9619076ecad8a.tar.bz2
re PR c++/30021 (ICE on invalid parameter for main)
PR c++/30021 * c-common.c (check_main_parameter_types): Check for error_mark_node. * g++.dg/other/main1.C: New test. From-SVN: r119415
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r--gcc/c-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c
index d7e98de..d2c39bd 100644
--- a/gcc/c-common.c
+++ b/gcc/c-common.c
@@ -1034,7 +1034,7 @@ check_main_parameter_types (tree decl)
{
tree type = args ? TREE_VALUE (args) : 0;
- if (type == void_type_node)
+ if (type == void_type_node || type == error_mark_node )
break;
++argct;