This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/32472] New: ICE in trans-const.c:106 for REPEAT initialization expression of non-parameter
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Jun 2007 13:38:08 -0000
- Subject: [Bug fortran/32472] New: ICE in trans-const.c:106 for REPEAT initialization expression of non-parameter
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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