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

Error parsing a globally scoped template type parameter

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • None
    • Qt Creator 3.5.0-beta1
    • C/C++/Obj-C++ Support
    • None
    • Linux 3.16.0-34-generic #47~14.04.1-Ubuntu SMP Fri Apr 10 17:49:16 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

    Description

      Qt Creator displays an error and generally does not recognize a templated type if the template parameter is a type starting with a scope operator:

      #include <string>
      #include <vector>
      std::vector<::std::string> x;
      

      This code is syntactically correct, it compiles and works. However Qt creator draws a red underline and reports "expected a declaration".

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes