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

C++ support does not correctly interpret the 'using' keyword when used with a class instead of a namespace within function scope

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • Qt Creator 2.8.0-beta
    • Qt Creator 2.1.0, Qt Creator 2.2.0
    • C/C++/Obj-C++ Support
    • None
    • Qt 4.7.1 (from git)
      Gentoo Linux
    • 64d80150faaffa34f0a05c9692d7286c473c0b01

      Consider the following snippet:

      void foo()
      {
          using mynamespace::myclass;
          myclass c;
      }
      

      Code completion/navigation/syntax highlighting, etc... does not work for 'c'. The following snippet does work, however:

      void foo()
      {
          using namespace mynamespace;
          myclass c;
      }
      

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

            kosjar Nikolai Kosjar
            wongk Kris Wong
            Votes:
            6 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes