This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Fix PR c++/java 11006: ICE on missing class$
- From: Andrew Haley <aph at redhat dot com>
- To: Volker Reichelt <reichelt at igpm dot rwth-aachen dot de>
- Cc: gcc-patches at gcc dot gnu dot org, java-patches at gcc dot gnu dot org
- Date: Thu, 22 Jun 2006 13:10:51 +0100
- Subject: Re: [patch] Fix PR c++/java 11006: ICE on missing class$
- References: <tkrat.48c787bf5b80f75c@igpm.rwth-aachen.de>
Volker Reichelt writes:
> In build_java_class_ref in cp/init.c we have
>
> if (jclass_node == NULL_TREE)
> fatal_error ("call to Java constructor, while %<jclass%> undefined");
>
> and
>
> if (!field)
> internal_error ("can't find class$");
>
> Is there are reason why we don't emit a regular error and return
> error_mark_node in these cases? Both conditions can be triggered
> with user errors (see testcases below) and should be treated as
> regular errors IMHO.
That seems reasonable to me.
Andrew.