------- Comment #6 from dfranke at gcc dot gnu dot org 2009-12-11 22:20 ------- For the example in #1, the wrong name is picked up in trans-array.c (gfc_trans_array_bound_check):
2310 if (!name && se->loop && se->loop->ss && se->loop->ss->expr 2311 && se->loop->ss->expr->symtree) 2312 name = se->loop->ss->expr->symtree->name; No idea where to look for the correct one. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34546