https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66128
Bug ID: 66128 Summary: ICE for some intrinsics with zero sized array parameter Product: gcc Version: 5.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- This simplified code snippet with a zero sized array parameter z ... program p integer, parameter :: z(0) = 0 print *, any(z > 0) print *, all(z > 0) end or this variation ... program p integer, parameter :: z(1:0) = 0 print *, any(z > 0) print *, all(z > 0) end prints (with gfortran 5.1.1 on SUSE Linux 13.2, 64 bit) internal compiler error: in gfc_conv_intrinsic_anyall, at fortran/trans-intrinsic.c:3149 Whereas, without declaring z as a parameter it works, e.g. program p integer :: z(0) = 0 print *, any(z > 0) print *, all(z > 0) end Kind regards.