[Bug fortran/126517] Assigning an unallocated allocatable function result array to an allocatable causes segmentation fault

"mikael at gcc dot gnu.org via Gcc-bugs" <[email protected]>
Newsgroups gmane.comp.gcc.bugs
Message-ID <[email protected]/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126517

--- Comment #5 from Mikael Morin <mikael at gcc dot gnu.org> ---
(In reply to Steve Kargl from comment #3)
> Your example suggests that gfortran should issue an error/warning
> about an unallocated function result.  Given the complexity of 
> the allocation/deallocation code, this may be a difficult thing to
> get right.

Thomas' recent -Wunused-vars warning doesn't catch it.
I've opened PR126530 for that.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.