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

Clang: Local use selections fails for initializer in class scope

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3: Somewhat important
    • None
    • Qt Creator 4.4.0-rc1
    • C/C++/Obj-C++ Support

    Description

      struct Foo {};
      struct FooClient { FooClient(const Foo &) {} };
      
      void c()
      {
          Foo foo;
          FooClient fooClient{foo}; // OK - cursor on "foo" will highlight the one from above, too
      }
      
      struct SomeClass
      {
          Foo foo;
          FooClient fooClient{foo}; // Ops - cursor on "foo" will *not* highlight the one above
      };
      

      Attachments

        Issue Links

          Activity

            People

              kosjar Nikolai Kosjar
              kosjar Nikolai Kosjar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: