This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] PR10602


Op vr 04-07-2003, om 12:44 schreef Joseph S. Myers:
> On Fri, 4 Jul 2003, Steven Bosscher wrote:
> 
> > Just a boring tree check failure when comparing a function
> > prototype with its declaration and one of the arguments
> > has the "type" error_mark_node.
> > 
> > Bootstrapped on i686-pc-linux-gnu, and verified that the ICE
> > disappears; running the test suite now.  OK if it passes?
> 
> This sort of thing (that we don't ICE in error recovery) should get 
> testcases in gcc.dg/noncompile.

Patch OK with a testcase like this (will be
gcc.dg/noncompile/incomplete-2.c)?

--------------------
/* Origin: <steven@gcc.gnu.org>
   Make sure we do not ICE when the type in the function
   argument list is incomplete (Bug 10602).  */

int g95_type_for_mode (enum machine_mode);
 
int
g95_type_for_mode (enum machine_mode mode)
{ /* { dg-error "has incomplete type" } */
  return 0;
}
--------------------

Gr.
Steven


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]