http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58027

            Bug ID: 58027
           Summary: "Arithmetic overflow converting ..." in PARAMETER
                    triggers an ICE
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dominiq at lps dot ens.fr

Compiling the following code (extracted from
http://mathalacarte.com/hpcconsult):

  INTEGER, PARAMETER :: ISCLASS(1) = &
    (/&
    Z'FF800000'& ! IEEE_NEGATIVE_INF
    /)
    print *, isclass
end

gives the following ICE

isclass_3.f90: In function 'MAIN__':
isclass_3.f90:5:0: internal compiler error: in gfc_conv_array_initializer, at
fortran/trans-array.c:5473
     print *, isclass

while it compiles with -fno-range-check.

Reply via email to