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

Virtual overrides not triggered for cast type

    XMLWordPrintable

Details

    • fe9bb880ae5d251e2fa12e42bf4572c7d0c52c00

    Description

      class Base { virtual void virt() {} };
      class Derived : public Base { void virt() {} };
      
      void foo()
      {
          Derived *d = new Derived;
          static_cast<Base *>(d)->virt(); // F2 jumps to Base
      }

      Attachments

        Issue Links

          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:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes