aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/interface.c
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2014-09-02 16:08:05 +0000
committerMarek Polacek <mpolacek@gcc.gnu.org>2014-09-02 16:08:05 +0000
commit86eb9e2fbeb5541af8ac0ce37fa60cded76877b4 (patch)
tree94801342df0045d013caa64095390881f611a5e6 /gcc/fortran/interface.c
parente9e67af14893295ed164e269baa26c2325ae7cf1 (diff)
downloadgcc-86eb9e2fbeb5541af8ac0ce37fa60cded76877b4.zip
gcc-86eb9e2fbeb5541af8ac0ce37fa60cded76877b4.tar.gz
gcc-86eb9e2fbeb5541af8ac0ce37fa60cded76877b4.tar.bz2
re PR fortran/62270 (-Wlogical-not-parentheses warnings)
PR fortran/62270 * interface.c (compare_parameter): Fix condition. * trans-expr.c (gfc_conv_procedure_call): Likewise. * gfortran.dg/pointer_intent_7.f90: Adjust dg-error. From-SVN: r214827
Diffstat (limited to 'gcc/fortran/interface.c')
-rw-r--r--gcc/fortran/interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/interface.c b/gcc/fortran/interface.c
index b210d18..f6233b7 100644
--- a/gcc/fortran/interface.c
+++ b/gcc/fortran/interface.c
@@ -2014,7 +2014,7 @@ compare_parameter (gfc_symbol *formal, gfc_expr *actual,
if (formal->ts.type == BT_CLASS && formal->attr.class_ok
&& actual->expr_type != EXPR_NULL
&& ((CLASS_DATA (formal)->attr.class_pointer
- && !formal->attr.intent == INTENT_IN)
+ && formal->attr.intent != INTENT_IN)
|| CLASS_DATA (formal)->attr.allocatable))
{
if (actual->ts.type != BT_CLASS)