This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/29490] internal compiler error: in fold_binary, at fold-const.c:8239
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Oct 2006 14:09:02 -0000
- Subject: [Bug fortran/29490] internal compiler error: in fold_binary, at fold-const.c:8239
- References: <bug-29490-13399@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from rguenth at gcc dot gnu dot org 2006-10-17 14:09 -------
Confirmed.
We're folding <NULL_TREE> + D.1277->dimD.1247[0].uboundD.1245 -
D.1277->dimD.1247[0].lboundD.1244
here:
#2 0x00000000006eb4ee in fold_build2_stat (code=PLUS_EXPR,
type=0x2b5f89b8e630, op0=0x0, op1=0x2b5f89c5d320)
at /space/rguenther/src/svn/trunk/gcc/fold-const.c:11632
#3 0x00000000004a0cb4 in gfc_set_interface_mapping_bounds (
block=0x7fff214e4c60, type=0x2b5f89c5e210, desc=0x2b5f89b8ba40)
at /space/rguenther/src/svn/trunk/gcc/fortran/trans-expr.c:1306
#4 0x00000000004a12a4 in gfc_add_interface_mapping (mapping=0x7fff214e4cb0,
sym=0x1003150, se=0x7fff214e4c60)
at /space/rguenther/src/svn/trunk/gcc/fortran/trans-expr.c:1417
#5 0x00000000004a27ce in gfc_conv_function_call (se=0x7fff214e4dd0,
sym=0x10020b0, arg=0xfd0050)
at /space/rguenther/src/svn/trunk/gcc/fortran/trans-expr.c:2053
#6 0x00000000004a3d24 in gfc_conv_function_expr (se=0x7fff214e4dd0,
expr=0x1002190)
at /space/rguenther/src/svn/trunk/gcc/fortran/trans-expr.c:2548
so, GFC_TYPE_ARRAY_LBOUND (type, n) is NULL
1301 {
1302 dim = gfc_rank_cst[n];
1303 tmp = fold_build2 (MINUS_EXPR, gfc_array_index_type,
1304 gfc_conv_descriptor_ubound (desc, dim),
1305 gfc_conv_descriptor_lbound (desc, dim));
1306 tmp = fold_build2 (PLUS_EXPR, gfc_array_index_type,
1307 GFC_TYPE_ARRAY_LBOUND (type, n),
1308 tmp);
1309 tmp = gfc_evaluate_now (tmp, block);
1310 GFC_TYPE_ARRAY_UBOUND (type, n) = tmp;
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
GCC build triplet|4.2.0 20061015 |
|(experimental) |
GCC host triplet|suse 9.0 |
Keywords| |ice-on-valid-code
Known to fail| |4.1.2 4.2.0
Last reconfirmed|0000-00-00 00:00:00 |2006-10-17 14:09:01
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29490