Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-6207

breakpoints in switch/case statement are displaced, if variable declaration inside of case block

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • Qt Creator 2.4.0
    • Qt Creator 2.3.0, Qt Creator 2.3.1
    • Debugger
    • None
    • Windows Vista or Windows 7, Miscosoft Visual C++ Compiler 10.0 (x86), cdb
    • 5e7e6e5a9cbf6c01ce71694c9d278463b57a1a0d, 71b2cbef9a811a0b1cc5ce88a748805a9090ea5e

      if you set an breakpoint in line 9 and then start debugging, the breakpoint is displaced to line 11.

      3: int x = 1;
      4:
      5: switch {
      6: case 1:
      7:

      { 8: int y = 2; 9: y++; 10: break; 11: }

      Worked fine with Qt Creator 2.1

        1. debug_1.png
          debug_1.png
          4 kB
        2. debug_2.png
          debug_2.png
          4 kB
        3. main.cpp
          0.2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kleint Friedemann Kleint
            niels Niels Franksen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes