This is the mail archive of the gcc-bugs@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]

[Bug fortran/55827] ICE with multiple fortran modules and character lenght determined by an interfaced pure function


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.


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