This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/55827] ICE with multiple fortran modules and character lenght determined by an interfaced pure function
- From: "mikael at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 29 Dec 2012 16:40:07 +0000
- Subject: [Bug fortran/55827] ICE with multiple fortran modules and character lenght determined by an interfaced pure function
- Auto-submitted: auto-generated
- References: <bug-55827-4@http.gcc.gnu.org/bugzilla/>
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.