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

Regression: Functions with same name wrongfully considered the same function

XMLWordPrintable

    • 903c3cafe83fe8434ad6d18b400b73dd2ef50a99

      struct Foo
      {
        static void foo();
        static void bar();
      };
      
      struct Bar
      {
        static void foo();
      };
      
      void Foo::foo()
      {
        Bar::foo();
      }
      
      void Foo::bar()
      {
        Bar::foo();
      }
      
      
      void Bar::foo()
      {
      }

      Placing the caret on Foo::foo() highlights Bar::foo() as well. It isn't symmetric though. See attached screenshots.

        1. Bar.foo.png
          Bar.foo.png
          17 kB
        2. Foo.foo.png
          Foo.foo.png
          17 kB
        For Gerrit Dashboard: QTCREATORBUG-7777
        # Subject Branch Project Status CR V

            leamelo Leandro T. C. Melo
            orgads Orgad Shaneh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes