re PR c++/27279 (ICE with invalid constructor declaration)

PR c++/27279
	* decl.c (copy_fn_p): Skip functions with invalid first arg.

	* g++.dg/parse/ctor4.C: New test.

From-SVN: r113378
This commit is contained in:
Volker Reichelt 2006-04-29 20:48:45 +00:00 committed by Volker Reichelt
parent bfdb907ca2
commit 139a78c724
4 changed files with 19 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2006-04-29 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR c++/27279
* decl.c (copy_fn_p): Skip functions with invalid first arg.
2006-04-27 Mark Mitchell <mark@codesourcery.com>
PR c++/27292

View File

@ -8829,6 +8829,8 @@ copy_fn_p (tree d)
return 0;
arg_type = TREE_VALUE (args);
if (arg_type == error_mark_node)
return 0;
if (TYPE_MAIN_VARIANT (arg_type) == DECL_CONTEXT (d))
{

View File

@ -1,3 +1,8 @@
2006-04-29 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR c++/27279
* g++.dg/parse/ctor4.C: New test.
2006-04-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
PR fortran/25681

View File

@ -0,0 +1,7 @@
// PR c++/27279
// { dg-do compile }
struct A
{
A(void,void); // { dg-error "incomplete type|invalid use" }
};