This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/32472] New: ICE in trans-const.c:106 for REPEAT initialization expression of non-parameter


r.f90:1: internal compiler error: in gfc_conv_string_init, at
fortran/trans-const.c:106
(4.3.0 20070623, x86_64-unknown-linux-gnu)

This is
  gcc_assert (expr->expr_type == EXPR_CONSTANT);

Test case:
CHARACTER(len=1025) :: string2 = repeat('?',1025)
print *, string2
end

If one uses PARAMETER or a separate line (i.e. no initialization expression)
then it works.


-- 
           Summary: ICE in trans-const.c:106 for REPEAT initialization
                    expression of non-parameter
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]