diff options
author | Steven G. Kargl <kargl@gcc.gnu.org> | 2015-12-04 16:37:54 +0000 |
---|---|---|
committer | Steven G. Kargl <kargl@gcc.gnu.org> | 2015-12-04 16:37:54 +0000 |
commit | 6b2e46bf85e0da961c9006111c8d309bb7a70973 (patch) | |
tree | 85ec204da7cd3322e7eeef7a2b781528d06900a0 /gcc | |
parent | 4e722cf1dc7dd6087ddf8f861e24a9d4ad4bbd6a (diff) | |
download | gcc-6b2e46bf85e0da961c9006111c8d309bb7a70973.zip gcc-6b2e46bf85e0da961c9006111c8d309bb7a70973.tar.gz gcc-6b2e46bf85e0da961c9006111c8d309bb7a70973.tar.bz2 |
re PR fortran/68684 (gcc/fortran/resolve.c:8748: bad if test ?)
2015-12-04 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/68684
* resolve.c (resolve_lock_unlock_event): Fix logic faux pas.
From-SVN: r231281
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/fortran/resolve.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/resolve.c b/gcc/fortran/resolve.c index 6598855..10add62 100644 --- a/gcc/fortran/resolve.c +++ b/gcc/fortran/resolve.c @@ -8745,7 +8745,7 @@ resolve_lock_unlock_event (gfc_code *code) !gfc_is_coindexed (code->expr1)))) gfc_error ("Lock variable at %L must be a scalar of type LOCK_TYPE", &code->expr1->where); - else if ((code->op == EXEC_EVENT_POST && code->op == EXEC_EVENT_WAIT) + else if ((code->op == EXEC_EVENT_POST || code->op == EXEC_EVENT_WAIT) && (code->expr1->ts.type != BT_DERIVED || code->expr1->expr_type != EXPR_VARIABLE || code->expr1->ts.u.derived->from_intmod |