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

Follow symbol is incorrect for virtual function that accepts arguments

    XMLWordPrintable

Details

    • 9ef97873d8b4b7ed996a0cb67d2b61253221cca4

    Description

      struct A
      {
        virtual void func(int var) { }
      };
      
      struct B : A
      {
        void func(int var) { }
        void test() { func(42); }
      };
      

      Put the cursor on the call to func(42), then select Follow Symbol. It should jump to B::func(int), but it jumps to A::func(int).

      If func doesn't accept any arguments, it works correctly.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            orgads Orgad Shaneh
            orgads Orgad Shaneh
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes