https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67805

            Bug ID: 67805
           Summary: ICE on array constructor with wrong character
                    specification
           Product: gcc
           Version: 5.2.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 code :

$ cat z1.f90
program p
   print *, [character('') :: 'x', 'y']
end


and this variation :

$ cat z2.f90
program p
   print *, [character(['']) :: 'x', 'y']
end


yields :
$ gfortran -g -O0 -Wall -fcheck=all -fno-frontend-optimize z1.f90
internal compiler error: in gfc_conv_expr_val, at fortran/trans-expr.c:7263

Reply via email to