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

Support C++20 language features

    XMLWordPrintable

Details

    • User Story
    • Resolution: Out of scope
    • P2: Important
    • None
    • None
    • C/C++/Obj-C++ Support
    • None

    Description

      Qt Creator should be able to correctly parse code that use latest C++20, like the spaceship operator:

      #include <compare>
      struct MyInt {
        int value;
        MyInt(int value): value{value} { }
        auto operator<=>(const MyInt&) const = default;
      };
      

      Currently results in

      error: 'operator<=' cannot be the name of a variable or data member
      

      (TODO: We should be able to find a repo with some testbed for C++ 20 language features)

      Attachments

        Issue Links

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

          Activity

            People

              davschul David Schulz
              kkohne Kai Köhne
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes