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

template using not instantiated

    XMLWordPrintable

    Details

    • Commits:
      b67ebf9ffce6bbba7952b36120f49d7abf956e66

      Description

      // Case 1
      template<typename T>
      using type = T;
      
      // Case 2
      struct Parent {
          template<typename T>
          using type = T;
      };
      
      // Case 3
      template<typename T>
      struct ParentT {
          template<typename DT>
          using type = DT;
      };
      
      struct Foo { int bar; };
      
      void func()
      {
          type<Foo> p1;
          Parent::type<Foo> p2;
          ParentT<Foo>::type<Foo> p3;
          // bar not highlighted
          p1.bar;
          p2.bar;
          p3.bar;
      }

        Attachments

          Issue Links

          For Gerrit Dashboard: QTCREATORBUG-14480
          # Subject Branch Project Status CR V

            Activity

              People

              • Assignee:
                orgads Orgad Shaneh
                Reporter:
                orgads Orgad Shaneh
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes