summaryrefslogtreecommitdiffstats
path: root/gcc/fortran/resolve.c
diff options
context:
space:
mode:
authortobi <tobi@138bc75d-0d04-0410-961f-82ee72b054a4>2004-06-15 21:50:50 +0000
committertobi <tobi@138bc75d-0d04-0410-961f-82ee72b054a4>2004-06-15 21:50:50 +0000
commitbaf442f04ac184480b155ddaa04cccb7a05a981d (patch)
tree91cec34fb614da23cba18dd77a187546799cb659 /gcc/fortran/resolve.c
parent3fe7c9431a10fd60756e08ab9c8481b7baad1827 (diff)
downloadppe42-gcc-baf442f04ac184480b155ddaa04cccb7a05a981d.tar.gz
ppe42-gcc-baf442f04ac184480b155ddaa04cccb7a05a981d.zip
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83202 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fortran/resolve.c')
-rw-r--r--gcc/fortran/resolve.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/gcc/fortran/resolve.c b/gcc/fortran/resolve.c
index d33dcb21176..b19721f1432 100644
--- a/gcc/fortran/resolve.c
+++ b/gcc/fortran/resolve.c
@@ -2586,13 +2586,6 @@ validate_case_label_expr (gfc_expr * e, gfc_expr * case_expr)
if (e == NULL) return SUCCESS;
- if (e->expr_type != EXPR_CONSTANT)
- {
- gfc_error ("Expression in CASE statement at %L must be a constant",
- &e->where);
- return FAILURE;
- }
-
if (e->ts.type != case_ts.type)
{
gfc_error ("Expression in CASE statement at %L must be of type %s",
OpenPOWER on IntegriCloud