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

Support C++11 syntax

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 2.7.0
    • Qt Creator 2.6.2
    • C/C++/Obj-C++ Support
    • None
    • Linux 64bit

    Description

      The following code is valid C++11 and does compile. However, QtCreator marks the line "using..." as wrong with the message

      expected token `;' got `='
      template <class F>
      class Foo
      {
      
      };
      
      class Bar
      {
      
      };
      
      using Baz = Foo<Bar>;
      

      In the following code sample, QtCreator marks the line "void do_stuff..." as wrong with the error message

      unexpected token `int'
      template <class F>
      class Foo
      {
      
      };
      
      template <class B>
      class Bar
      {
      
      };
      
      class Baz
      {
      
      };
      
      void do_stuff(int x, Foo<Bar<Baz>> y)
      {
      
      }
      

      Attachments

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

        Activity

          People

            erikv Erik Verbruggen
            winniehell Winnie
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes