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] Fix PR c++/java 11006: ICE on missing class$


Andrew Haley wrote:
> 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.

Me too.  That change is pre-approved.

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713


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