Created attachment 24365 [details] reduced testcase (from gfortran.dg/assumed_charlen_function_3.f90) Maybe related to PR49091, it ICEs with the same message. Compiler output: $ gcc -O -findirect-inlining testcase.f90 testcase.f90:8:0: internal compiler error: vector VEC(tree,base) index domain error, in evaluate_conditions_for_known_args at ipa-inline-analysis.c:558 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. Tested revisions: r174261 - crash 4.6 r173059 - OK
It is caused by revision 172873: http://gcc.gnu.org/ml/gcc-cvs/2011-04/msg01069.html
Author: hubicka Date: Sat Jun 4 18:00:47 2011 New Revision: 174648 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174648 Log: PR tree-optimization/48893 PR tree-optimization/49091 PR tree-optimization/49179 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Bounds check. * gfortran.dg/pr49179.f90: New testcase Added: trunk/gcc/testsuite/gfortran.dg/pr49179.f90 Modified: trunk/gcc/ChangeLog trunk/gcc/ipa-inline-analysis.c trunk/gcc/testsuite/ChangeLog
Fixed.