https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66043
Bug ID: 66043 Summary: ICE on storage_size of null or output of null array Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- --- code snippet 1 : program p print *, storage_size([null()]) end f951: internal compiler error: Invalid expression in gfc_element_size. --- code snippet 2 : program p print *, storage_size(null()) end f951: internal compiler error: Invalid expression in gfc_element_size. --- code snippet 3 : program p print *, [null()] end internal compiler error: in gfc_typenode_for_spec, at fortran/trans-types.c:1084 --- Tested with gfortran 5.1.1 on SUSE Linux 13.2 (64 bit). Kind regards.