This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/34545] ICE when compiling Fortran 95 code
- From: "jon_d_r at msn dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Dec 2007 18:36:07 -0000
- Subject: [Bug fortran/34545] ICE when compiling Fortran 95 code
- References: <bug-34545-15536@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from jon_d_r at msn dot com 2007-12-26 18:36 -------
Maybe this should best be described as:
"ICE when function returns array of values to dynamically allocated array"
If the LHS is a 'statically allocated' array, the function returns array of
values without problem. If the LHS is a dynamically allocated array,
attempting to assign the array of values from the functions causes an ICE.
So gfortran fails to implement an essential feature of Fortran 95.
Workaround is to call a subroutine and have the array of values returned in the
argument list.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34545