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

Template cross-reference between nested classes doesn't work

    XMLWordPrintable

Details

    • 5d76b4339a717cd944c4a3c27eac860b8111d645, ba42ceb0cb7827a9bbad29a1e08d4a25339ea57d

    Description

      template<class T>
      struct Temp
      {
          struct Nested1 { T t; };
          struct Nested2 { Nested1 n1; };
      };
      
      struct Foo { int foo; };
      
      void func()
      {
          Temp<Foo>::Nested1 n1;
          Temp<Foo>::Nested2 n2;
          n1.t.foo; // Highlighted
          n2.n1.t.foo; // Not highlighted
      }

      Attachments

        1. cross-template.png
          7 kB
          Orgad Shaneh

        Issue Links

          Activity

            People

              kosjar Nikolai Kosjar
              orgads Orgad Shaneh
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: