This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/82605] [PDT] ICE in insert_parameter_exprs, at fortran/decl.c:3154
- From: "pault at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 29 Nov 2017 14:13:59 +0000
- Subject: [Bug fortran/82605] [PDT] ICE in insert_parameter_exprs, at fortran/decl.c:3154
- Auto-submitted: auto-generated
- References: <bug-82605-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82605
Paul Thomas <pault at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at gcc dot gnu.org |pault at gcc dot gnu.org
--- Comment #3 from Paul Thomas <pault at gcc dot gnu.org> ---
Created attachment 42743
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42743&action=edit
A fix for the problem
With the attached patch, now produces the error:
[pault@pc30 pr82605]$ ~/irun/bin/gfortran -static-libgfortran pr*.f90
-fdump-tree-original
pr82065.f90:7:21:
type(t(8, :)) :: x
1
Error: The object ‘x’ at (1) has a deferred LEN parameter ‘b’ and is neither
allocatable nor a pointer
Giving x either attribute allows compilation and correct execution. (I assume
that x%a, being a KIND parameter, is OK in a KIND specification?
With the tweak to pdt_4.f03, it bootstraps and regtests OK.
Paul