This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, Fortran] PR fortran/77764 - ICE in is_anonymous_component
- From: Andre Vehreschild <vehre at gmx dot de>
- To: Fritz Reese <fritzoreese at gmail dot com>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>, fortran <fortran at gcc dot gnu dot org>
- Date: Fri, 30 Sep 2016 10:49:19 +0200
- Subject: Re: [PATCH, Fortran] PR fortran/77764 - ICE in is_anonymous_component
- Authentication-results: sourceware.org; auth=none
- References: <CAE4aFAmZJUkUBPFi_jnz-14680y1x=XpjqHiapktvzyVKnGz-A@mail.gmail.com>
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