[Bug fortran/82605] [PDT] ICE in insert_parameter_exprs, at fortran/decl.c:3154
pault at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Nov 29 14:14:00 GMT 2017
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
More information about the Gcc-bugs
mailing list