trunk/gcc/fortran/class.c:313] -> [trunk/gcc/fortran/class.c:310]: (style) Same expression on both sides of '&&'. else if (ref->next && ref->next->type == REF_ARRAY && !ref->next->next && ref->type == REF_COMPONENT && ref->next->type == REF_ARRAY && ref->next->u.ar.type != AR_ELEMENT)
Testing the obvious fix --- ../_clean/gcc/fortran/class.c 2017-04-14 23:53:52.000000000 +0200 +++ gcc/fortran/class.c 2017-07-08 12:25:51.000000000 +0200 @@ -310,7 +310,6 @@ class_array_ref_detected (gfc_ref *ref, else if (ref->next && ref->next->type == REF_ARRAY && !ref->next->next && ref->type == REF_COMPONENT - && ref->next->type == REF_ARRAY && ref->next->u.ar.type != AR_ELEMENT) { with_data = true;
Author: dominiq Date: Sun Jul 9 17:41:45 2017 New Revision: 250083 URL: https://gcc.gnu.org/viewcvs?rev=250083&root=gcc&view=rev Log: 2017-07-09 Dominique d'Humieres <dominiq@lps.ens.fr> PR fortran/81341 * class.c (class_array_ref_detected): Remove a redundant condition. Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/class.c
Closing as FIXED.