[Bug fortran/66043] New: ICE on storage_size of null or output of null array

gerhard.steinmetz.fortran@t-online.de gcc-bugzilla@gcc.gnu.org
Thu May 7 07:51:00 GMT 2015


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.fortran@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.



More information about the Gcc-bugs mailing list