Commit d8e1d619 by Volker Reichelt Committed by Volker Reichelt

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
parent 07b3bbf2
2006-12-01 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR c++/30021
* c-common.c (check_main_parameter_types): Check for error_mark_node.
2006-12-01 Andrew MacLeod <amacleod@redhat.com>
* common.opt (ftree-combine-temps): Remove.
......
......@@ -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;
......
2006-12-01 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR c++/30021
* g++.dg/other/main1.C: New test.
2006-12-01 Thomas Koenig <Thomas.Koenig@online.de>
PR libfortran/29568
// PR c++/30021
// { dg-do compile }
int main(void,char**); // { dg-error "incomplete type|invalid use" }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment