This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/49962] [OOP] ICE when using type-bound function returning vector
- From: "wangmianzhi1 at linuxmail dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 4 Aug 2011 18:07:10 +0000
- Subject: [Bug fortran/49962] [OOP] ICE when using type-bound function returning vector
- Auto-submitted: auto-generated
- References: <bug-49962-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49962
--- Comment #5 from wangmianzhi <wangmianzhi1 at linuxmail dot org> 2011-08-04 18:07:07 UTC ---
On 2011å08æ04æ 13:59, janus at gcc dot gnu.org wrote:
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49962
>
> janus at gcc dot gnu.org changed:
>
> What |Removed |Added
> ----------------------------------------------------------------------------
> CC| |janus at gcc dot gnu.org
> Summary|"internal compiler error" |[OOP] ICE when using
> |when using type-bounded |type-bound function
> |function returning vector |returning vector
>
> --- Comment #4 from janus at gcc dot gnu.org 2011-08-04 17:58:55 UTC ---
> This is certainly a duplicate of PR49961, and has been fixed by r160622, which
> could also be backported to the 4.5 branch.
>
> Since we got two apparently independent bug reports for this on the same day:
> Is there any "real-world" code which is affected by this bug? Or in other
> words: How did you come across this bug?
We can simply use subroutine instead of function to return vectors. But
I think it would be definitely not as decent as using functions for the
case of type-bounded procedures.
I think it would make many people's life easier if this fix could be
back ported to 4.5, considering the fact that most clusters for
engineering computation tend to use old compilers.
Thanks.
Mianzhi