This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

bogus `explicit braces' warning


gcc/f/expr.c:18034: warning: suggest explicit braces to avoid ambiguous `else'

        case FFEINFO_kindENTITY:
          if (ffesymbol_rank (s) == 0)
            if (ffeexpr_stack_->context == FFEEXPR_contextEQUIVALENCE)
              *paren_type = FFEEXPR_parentypeEQUIVALENCE_;
>>>         else if (ffesymbol_basictype (s) == FFEINFO_basictypeCHARACTER)
              *paren_type = FFEEXPR_parentypeSUBSTRING_;
            else
              {
                bad = TRUE;
                *paren_type = FFEEXPR_parentypeANY_;
              }
          else
            *paren_type = FFEEXPR_parentypeARRAY_;
          break;

Note that all of the else clauses are full.  Therefore there can be
no ambiguity.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]