Uploaded image for project: 'SonarCFamily'
  1. SonarCFamily
  2. CPP-1211

Fix false-positives and false-negatives in BackJumpWithGoto (S999)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.12
    • Component/s: C++, Rules
    • Labels:
      None

      Description

      False-negative:

      void example() {
        label: ;
        class C {
          void m() {
          }
        };
        goto label;
      }
      

      False-positive:

      void example() {
        class C {
          void m() {
            label: ;
          }
        };
        goto label;
        label: ;
      }
      

        Attachments

          Activity

            People

            Assignee:
            massimo.paladin Massimo PALADIN
            Reporter:
            evgeny.mandrikov Evgeny Mandrikov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: