Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-117765

moc chokes on <concepts> from xcode13

    XMLWordPrintable

Details

    • d39353085 (dev), a8c1c38f9 (6.6), 44c82209d (tqtc/lts-6.5)

    Description

      with 6.5.3, i'm getting this error, while with 6.5.2 the code works fine.

      Applications/Xcode13.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/concept:318:1: error: Parse error at "::"
      

      this somehow smells like being related to QTBUG-83160 and https://gitlab.kitware.com/cmake/cmake/-/issues/25117

      the stl code in question is:

      namespace ranges::inline __cpo {
        inline constexpr auto swap = __swap::__fn{};
      } // namespace ranges::__cpo
      

      maybe the compiler defines `inline`, which causes moc to choke?

      xcode 14 and 15 don't suffer from this issue, nevertheless i wonder if there's a way around it

      Attachments

        Issue Links

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

          Activity

            People

              fabiankosmale Fabian Kosmale
              timblechmann tim blechmann
              Votes:
              3 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes