http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55827



--- Comment #6 from Mikael Morin <mikael at gcc dot gnu.org> 2012-12-29 
16:40:07 UTC ---

(In reply to comment #5)



> Although I agree with Mikael that gfortran should probably

> not have a NULL symtree by the time we reach gfc_conv_function_expr,

> the above patch regression tests cleanly.



Indeed, it's probably not that bad actually, as value.function.esym is properly

set, despite symtree being NULL.



Regarding:

(In reply to comment #2)

> I'm not

> familiar with the internals for CLASS, so the

> change to class.c may need some additional work.

> 

That change is certainly OK: 

If e->symtree == NULL, it doesn't make sense to have subreferences (e->ref ==

NULL), so the function reduces to a no-op.

Reply via email to