aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g77.dg/12632.f
AgeCommit message (Collapse)AuthorFilesLines
2003-12-29re PR fortran/12632 ([g77 only] -fbounds-check ICE)Roger Sayle1-0/+6
PR fortran/12632 * fold-const.c (fold) <COND_EXPR>: Don't fold a constant condition, if the type of the selected branch doesn't match its' parent. * com.c (ffecom_subscript_check_): Take as an extra argument the (possibly NULL) decl of the array. Don't create unnecessary tree nodes if the array index is known to be safe at compile-time. If the array index is unsafe, force the array decl into memory to avoid RTL expansion problems. (ffecom_array_ref_): Update calls to ffecom_subscript_check_. (ffecom_char_args_x_): Likewise. * g77.dg/12632.f: New test case. From-SVN: r75203