> > > With gcc-gnat-4.9.2-1.fc21.x86_64 I see > > > -PASS: gdb.ada/arrayidx.exp: print r_two_three, indexes off > > > +FAIL: gdb.ada/arrayidx.exp: print r_two_three, indexes off > > > -PASS: gdb.ada/arrayidx.exp: print r_two_three > > > +FAIL: gdb.ada/arrayidx.exp: print r_two_three [...] > http://people.redhat.com/jkratoch/arrayidx.tar.xz Thanks. This allowed me to understand the source of the problem, and to push a fix (attached). gdb/ChangeLog: * ada-lang.c (ada_is_redundant_range_encoding): Return 0 if the TYPE_CODE of range_type's base type does not match the TYPE_CODE of encoding_type's base type. Tested on x86_64-linux. -- Joel