https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89860

            Bug ID: 89860
           Summary: liboffloadmic/runtime/offload_target.cpp:332]: (style)
                    Array index 'i' is used before limits check.
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

Source code is

            if (m_vars[i].type.dst == c_extended_type && i < vars_total) {

it might be wise to sanity check i before use, not after.

Reply via email to