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

Error parsing a globally scoped template type parameter

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Not Evaluated 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

      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".

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes