This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/17309] New: gfortran ICE on invalid code: trans-expr.c:1943: gfc_conv_string_parameter: Assertion failed
- From: "anlauf at hep dot tu-darmstadt dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Sep 2004 20:13:51 -0000
- Subject: [Bug fortran/17309] New: gfortran ICE on invalid code: trans-expr.c:1943: gfc_conv_string_parameter: Assertion failed
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Hi there,
program gfcbug8
! The statement below is invalid code. The format specification is intended
! to be a character expression, e.g.: '(i3)'
write (*, (i3)) 0
end program gfcbug8
lets gfortran die during compilation with:
f951: ../../gcc/gcc/fortran/trans-expr.c:1943: gfc_conv_string_parameter:
Assertion `(((enum tree_code) (((se->expr)->common.type))->common.code) ==
POINTER_TYPE || ((enum tree_code) (((se->expr)->common.type))->common.code) ==
REFERENCE_TYPE)' failed.
gfcbug8.f90: In function `MAIN__':
gfcbug8.f90:4: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Cheers,
-ha
--
Summary: gfortran ICE on invalid code: trans-expr.c:1943:
gfc_conv_string_parameter: Assertion failed
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: anlauf at hep dot tu-darmstadt dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17309