re PR fortran/55172 ([OOP] gfc_variable_attr(): Bad array reference in SELECT TYPE)
authorPaul Thomas <pault@gcc.gnu.org>
Fri, 4 Jan 2013 20:50:15 +0000 (20:50 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Fri, 4 Jan 2013 20:50:15 +0000 (20:50 +0000)
commite4821cd8679ab65057ad7f48c2236be8ad3ed8b7
tree9a2cd2947d0ca61ecfb9528b1ee3dc7d2183d477
parentad8c59a1b9c665496a01871b5e21500d8945ac3f
re PR fortran/55172 ([OOP] gfc_variable_attr(): Bad array reference in SELECT TYPE)

2013-01-04  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/55172
* match.c (copy_ts_from_selector_to_associate): Remove call to
gfc_resolve_expr and replace it with explicit setting of the
array reference type.
* resolve.c (resolve_select_type): It is an error if the
selector is coindexed.

2013-01-04  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/55172
* gfortran.dg/select_type_31.f03: New test.

From-SVN: r194916
gcc/fortran/ChangeLog
gcc/fortran/match.c
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/select_type_31.f03 [new file with mode: 0644]