This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/70870] Segmentation violation in gfc_assign_data_value
- From: "kargl at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 07 Apr 2018 15:28:37 +0000
- Subject: [Bug fortran/70870] Segmentation violation in gfc_assign_data_value
- Auto-submitted: auto-generated
- References: <bug-70870-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70870
--- Comment #7 from kargl at gcc dot gnu.org ---
(In reply to Gerhard Steinmetz from comment #2)
> A variant that aborts with this message directly :
>
> $ gfortran-6 z1.f90
> f951: internal compiler error: in gfc_assign_data_value, at
> fortran/data.c:449
>
> $ cat z1.f90
> program p
> type t
> integer :: n
> end type
> type(t), pointer :: z => null()
> data z%n / 3 /
> print *, z%n
> end
>
> ---
>
> A minimal change of z1.f90 immediately points to pr50410 :
>
> $ cat z2.f90
> program p
> type t
> integer :: n
> end type
> type(t), pointer :: z
> data z%n / 3 /
> print *, z%n
> end
>
> $ gfortran-6 z2.f90
> f951: internal compiler error: in record_reference, at cgraphbuild.c:64
These "variant" are different problems than the one in the intial
post. The original problem is considered with an entity that
has a default initializer appearing in a DATA statement. The
above examples are issues with a unassociated pointer appearing
a DATA statement. These should have a new PR opened for them.