[Bug fortran/44584] gfortran.dg/typebound_proc_15.f03 failed

hjl dot tools at gmail dot com gcc-bugzilla@gcc.gnu.org
Sat Jun 19 00:48:00 GMT 2010



------- Comment #6 from hjl dot tools at gmail dot com  2010-06-19 00:47 -------
(In reply to comment #5)
> Ok, actually I also get an ICE. But for some reason only when compiling by
> hand, not in the testsuite.
> 
> It is fixed by this patch:
> 
> 
> Index: gcc/fortran/resolve.c
> ===================================================================
> --- gcc/fortran/resolve.c       (revision 160948)
> +++ gcc/fortran/resolve.c       (working copy)
> @@ -10850,7 +10850,7 @@
>                   c->ts.u.cl = cl;
>                 }
>             }
> -         else if (c->ts.interface->name[0] != '\0' && !sym->attr.vtype)
> +         else if (!sym->attr.vtype && c->ts.interface->name[0] != '\0')
>             {
>               gfc_error ("Interface '%s' of procedure pointer component "
>                          "'%s' at %L must be explicit", c->ts.interface->name,
> 
> 
> Does this fix the issue for you?
> 

It will be while before I can check it on ia64. However if your patch fixes
valgrind issue on x86, it won't hurt to check it in.  Thanks.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44584



More information about the Gcc-bugs mailing list