[patch] Fix PR c++/java 11006: ICE on missing class$
Andrew Haley
aph@redhat.com
Thu Jun 22 13:29:00 GMT 2006
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.
More information about the Gcc-patches
mailing list