re PR fortran/15962 (constant expression not recognized as such)
authorTobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
Tue, 15 Jun 2004 21:50:50 +0000 (23:50 +0200)
committerTobias Schlüter <tobi@gcc.gnu.org>
Tue, 15 Jun 2004 21:50:50 +0000 (23:50 +0200)
commit6ef4215401ab8001886973790886dfd75446c037
tree91cec34fb614da23cba18dd77a187546799cb659
parent0173bb6f2d715c4c3839c17e26a38bd522e07fa4
re PR fortran/15962 (constant expression not recognized as such)

fortran/
PR fortran/15962
* match.c (match_case_selector): Call gfc_match_init_expr
instead of gfc_match_expr.
* resolve.c (validate_case_label_expr): No need to check for
constant, since it wouldn't have been matched with the fix to
match.c.
testsuite/
PR fortran/15962
* gfortran.fortran-torture/execute/select_1.f90: New test.

From-SVN: r83202
gcc/fortran/ChangeLog
gcc/fortran/match.c
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.fortran-torture/execute/select_1.f90 [new file with mode: 0644]
gcc/testsuite/lib/f-torture.exp