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

Wrong global in debugger tooltip

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 15.0.0
    • Debugger
    • None
    • Windows

       

      #include <iostream>
      
      namespace Test {
          static int d = 100;
          void test() {
              std::cout << d; // <- hover over "d" and check value displayed
          }
      }
      
      static int d = 50;
      int main() {
          std::cout << d;
          Test::test();
          return 0;
      }
      

        1. vscode.png
          vscode.png
          44 kB
        2. vs2022.png
          vs2022.png
          52 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            ansemkiv Andrii Semkiv
            madwinter Marcus Tillmanns
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes