Switch implemented incorrectly

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P3
    • None
    • Affects Version/s: 1.1
    • Component/s: tools
    • None
    • x86
    • windows_95



      Name: mc57594 Date: 02/07/97


      14.9 requires that all BlockStatements in a SwitchBlock are
      preceded by SwitchLabels. Your compiler does not require this, instead it
      allows the block to begin with unlabelled statements. E.g.:

      class X {
          {
              switch (0) {
                  int x = 5;
              }
          }
      }
      ======================================================================

            Assignee:
            David Stoutamire (Inactive)
            Reporter:
            Mark Chamness (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: