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$


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.


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