re PR fortran/89375 (fortran/expr.c:4723:5: warning: logical ‘or’ of equal expression...
authorDominique d'Humieres <dominiq@gcc.gnu.org>
Wed, 3 Apr 2019 09:00:27 +0000 (11:00 +0200)
committerDominique d'Humieres <dominiq@gcc.gnu.org>
Wed, 3 Apr 2019 09:00:27 +0000 (11:00 +0200)
2019-04-03  Dominique d'Humieres  <dominiq@gcc.gnu.org>

PR fortran/89375
* expr.c (comp_pointer): Remove redundant condition.

From-SVN: r270115

gcc/fortran/ChangeLog
gcc/fortran/expr.c

index 61eb67b8b9a4ab15b8944bf9d3e907806be5d3f1..0fc9d97e6f024f050b9ae1ed75687b6a7f097190 100644 (file)
@@ -1,3 +1,8 @@
+2019-04-03  Dominique d'Humieres  <dominiq@gcc.gnu.org>
+
+       PR fortran/89375
+       * expr.c (comp_pointer): Remove redundant condition.
+
 2019-03-31  Harald Anlauf  <anlauf@gmx.de>
 
        PR fortran/83515
index 478a55577237c6e9fdd420c5252b9280a09b8783..47ec35f6d8aab443d408f3804c826b5dcf6d5244 100644 (file)
@@ -4782,7 +4782,6 @@ static bool
 comp_pointer (gfc_component *comp)
 {
   return comp->attr.pointer
-    || comp->attr.pointer
     || comp->attr.proc_pointer
     || comp->attr.class_pointer
     || class_pointer (comp);