https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120049

--- Comment #5 from anlauf at gcc dot gnu.org ---
(In reply to Jerry DeLisle from comment #4)

> $ gfc -c test.f90 
> f951: internal compiler error: gfc_typename(): Undefined type
> 0x694bce diagnostic_report_diagnostic(diagnostic_context*, diagnostic_info*)
>       ../../trunk/gcc/diagnostic.h:1180
> 0x694bce gfc_report_diagnostic
>       ../../trunk/gcc/fortran/error.cc:250
> 0x694bce gfc_internal_error(char const*, ...)
>       ../../trunk/gcc/fortran/error.cc:834
> 0x6d5ecf gfc_typename(gfc_typespec*, bool)
>       ../../trunk/gcc/fortran/misc.cc:218
> 0x66335a gfc_check_c_associated(gfc_expr*, gfc_expr*)
>       ../../trunk/gcc/fortran/check.cc:5977
> 0x6aeb92 check_specific
>       ../../trunk/gcc/fortran/intrinsic.cc:4971
> 0x6b7bb5 gfc_intrinsic_func_interface(gfc_expr*, int)
>       ../../trunk/gcc/fortran/intrinsic.cc:5217
> 0x72626b resolve_unknown_f
>    ...
> 
> Anyone have any thoughts?

Yes.  Set a breakpoint at check.cc:5977 and print c_ptr_2:

c_loc is a function and BT_VOID, and this is not handled.

Reply via email to