[Bug fortran/49962] [OOP] ICE when using type-bound function returning vector

wangmianzhi1 at linuxmail dot org gcc-bugzilla@gcc.gnu.org
Thu Aug 4 18:07:00 GMT 2011


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



More information about the Gcc-bugs mailing list