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:
parent
bfdb907ca2
commit
139a78c724
|
@ -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
|
||||
|
|
|
@ -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))
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
// PR c++/27279
|
||||
// { dg-do compile }
|
||||
|
||||
struct A
|
||||
{
|
||||
A(void,void); // { dg-error "incomplete type|invalid use" }
|
||||
};
|
Loading…
Reference in New Issue