This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, Fortran] PR fortran/77764 - ICE in is_anonymous_component


Hi Fritz,

just out of curiosity: A structure typed can't be used for a class object? Like:

structure /T/
  integer :: something
end structure

class(T), allocatable :: foo

end

When the above *is* allowed then I miss some CLASS_DATA (...) in the code. If
not, everything is fine.

- Andre

On Thu, 29 Sep 2016 10:30:13 -0400
Fritz Reese <fritzoreese@gmail.com> wrote:

> ICE in [1] is due to failure to null-guard map components in
> gfc_compare_union_types. Attached is [obvious] fix - will commit soon
> without complaints.
> 
> ---
> Fritz Reese
> 
> [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77764
> 
> 2016-09-29  Fritz Reese  <fritzoreese@gmail.com>
> 
>         Fix ICE for maps with zero components.
> 
>         PR fortran/77764
>         * gcc/fortran/interface.c (gfc_compare_union_types): Null-guard map
>         components.
> 
>         PR fortran/77764
>         * gcc/testsuite/gfortran.dg/dec_union_8.f90: New testcase.


-- 
Andre Vehreschild * Email: vehre ad gmx dot de 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]