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

GCC 13 fails to compile qtbase test tst_containerapisymmetry.cpp

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Out of scope
    • Affects Version/s: 6.x
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Ubuntu 22.04 headless; GCC13 20220627 (experimental); qtbase commit d76bf64531
    • Platform/s:
      Linux/Other display system

      Description

      It errors out when instantiating the ranged_ctor_non_associative_impl() template: "error: range-based ‘for’ expression of type ‘const int []’ has incomplete type"

      Configured with:

      ../qt5/configure -release -shared -developer-build -c++std c++2b -submodules qtbase -- -DWARNINGS_ARE_ERRORS=OFF
      

      The error:

      [2918/4979] Building CXX object qtbase/tests/auto/corelib/tools/containerapisymmetry/CMakeFiles/tst_containerapisymmetry.dir/tst_containerapisymmetry.cpp.o
      FAILED: qtbase/tests/auto/corelib/tools/containerapisymmetry/CMakeFiles/tst_containerapisymmetry.dir/tst_containerapisymmetry.cpp.o 
      /opt/gcc-13-git/bin/g++ -DQT_CORE_LIB -DQT_LEAN_HEADERS=1 -DQT_NO_DEBUG -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_STRICT_QLIST_ITERATORS -DQT_TESTCASE_BUILDDIR=\"/qtbase-build/qtbase/tests/auto/corelib/tools/containerapisymmetry\" -DQT_TESTCASE_SOURCEDIR=\"/qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry\" -DQT_TESTLIB_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/qtbase-build/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry_autogen/include -I/qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry -I/qtbase-build/qtbase/tests/auto/corelib/tools/containerapisymmetry -I/qtbase-build/qtbase/include -I/qtbase-build/qtbase/include/QtCore -I/qtbase-build/qtbase/mkspecs/linux-g++ -I/qtbase-build/qtbase/include/QtTest -DNDEBUG -O2 -fPIE -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -fPIC -Wsuggest-override -std=gnu++23 -MD -MT qtbase/tests/auto/corelib/tools/containerapisymmetry/CMakeFiles/tst_containerapisymmetry.dir/tst_containerapisymmetry.cpp.o -MF qtbase/tests/auto/corelib/tools/containerapisymmetry/CMakeFiles/tst_containerapisymmetry.dir/tst_containerapisymmetry.cpp.o.d -o qtbase/tests/auto/corelib/tools/containerapisymmetry/CMakeFiles/tst_containerapisymmetry.dir/tst_containerapisymmetry.cpp.o -c /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp: In instantiation of ‘void tst_ContainerApiSymmetry::ranged_ctor_non_associative_impl() const [with Container = std::vector<int>]’:
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:244:91:   required from here
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:454:13: error: range-based ‘for’ expression of type ‘const int []’ has incomplete type
        454 |             for (auto &v : values1)
            |             ^~~
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp: In instantiation of ‘void tst_ContainerApiSymmetry::ranged_ctor_non_associative_impl() const [with Container = std::vector<char>]’:
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:245:93:   required from here
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:454:13: error: range-based ‘for’ expression of type ‘const char []’ has incomplete type
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp: In instantiation of ‘void tst_ContainerApiSymmetry::ranged_ctor_non_associative_impl() const [with Container = std::vector<QChar>]’:
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:246:95:   required from here
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:454:13: error: range-based ‘for’ expression of type ‘const QChar []’ has incomplete type
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp: In instantiation of ‘void tst_ContainerApiSymmetry::ranged_ctor_non_associative_impl() const [with Container = std::vector<Movable>]’:
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:247:99:   required from here
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:454:13: error: range-based ‘for’ expression of type ‘const Movable []’ has incomplete type
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp: In instantiation of ‘void tst_ContainerApiSymmetry::ranged_ctor_non_associative_impl() const [with Container = std::vector<Complex>]’:
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:248:99:   required from here
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:454:13: error: range-based ‘for’ expression of type ‘const Complex []’ has incomplete type
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp: In instantiation of ‘void tst_ContainerApiSymmetry::ranged_ctor_non_associative_impl() const [with Container = QVarLengthArray<int>]’:
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:251:100:   required from here
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:454:13: error: range-based ‘for’ expression of type ‘const int []’ has incomplete type
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp: In instantiation of ‘void tst_ContainerApiSymmetry::ranged_ctor_non_associative_impl() const [with Container = QVarLengthArray<Movable>]’:
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:252:108:   required from here
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:454:13: error: range-based ‘for’ expression of type ‘const Movable []’ has incomplete type
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp: In instantiation of ‘void tst_ContainerApiSymmetry::ranged_ctor_non_associative_impl() const [with Container = QVarLengthArray<Complex>]’:
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:253:108:   required from here
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:454:13: error: range-based ‘for’ expression of type ‘const Complex []’ has incomplete type
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp: In instantiation of ‘void tst_ContainerApiSymmetry::ranged_ctor_non_associative_impl() const [with Container = QList<int>]’:
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:256:80:   required from here
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:454:13: error: range-based ‘for’ expression of type ‘const int []’ has incomplete type
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp: In instantiation of ‘void tst_ContainerApiSymmetry::ranged_ctor_non_associative_impl() const [with Container = QList<char>]’:
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:257:82:   required from here
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:454:13: error: range-based ‘for’ expression of type ‘const char []’ has incomplete type
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp: In instantiation of ‘void tst_ContainerApiSymmetry::ranged_ctor_non_associative_impl() const [with Container = QList<QChar>]’:
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:258:84:   required from here
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:454:13: error: range-based ‘for’ expression of type ‘const QChar []’ has incomplete type
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp: In instantiation of ‘void tst_ContainerApiSymmetry::ranged_ctor_non_associative_impl() const [with Container = QList<Movable>]’:
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:259:88:   required from here
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:454:13: error: range-based ‘for’ expression of type ‘const Movable []’ has incomplete type
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp: In instantiation of ‘void tst_ContainerApiSymmetry::ranged_ctor_non_associative_impl() const [with Container = QList<Complex>]’:
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:260:88:   required from here
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:454:13: error: range-based ‘for’ expression of type ‘const Complex []’ has incomplete type
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp: In instantiation of ‘void tst_ContainerApiSymmetry::ranged_ctor_non_associative_impl() const [with Container = std::__cxx11::list<int>]’:
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:263:87:   required from here
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:454:13: error: range-based ‘for’ expression of type ‘const int []’ has incomplete type
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp: In instantiation of ‘void tst_ContainerApiSymmetry::ranged_ctor_non_associative_impl() const [with Container = std::__cxx11::list<Movable>]’:
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:264:95:   required from here
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:454:13: error: range-based ‘for’ expression of type ‘const Movable []’ has incomplete type
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp: In instantiation of ‘void tst_ContainerApiSymmetry::ranged_ctor_non_associative_impl() const [with Container = std::__cxx11::list<Complex>]’:
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:265:95:   required from here
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:454:13: error: range-based ‘for’ expression of type ‘const Complex []’ has incomplete type
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp: In instantiation of ‘void tst_ContainerApiSymmetry::ranged_ctor_non_associative_impl() const [with Container = std::forward_list<int>]’:
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:268:103:   required from here
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:454:13: error: range-based ‘for’ expression of type ‘const int []’ has incomplete type
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp: In instantiation of ‘void tst_ContainerApiSymmetry::ranged_ctor_non_associative_impl() const [with Container = std::forward_list<Movable>]’:
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:269:110:   required from here
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:454:13: error: range-based ‘for’ expression of type ‘const Movable []’ has incomplete type
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp: In instantiation of ‘void tst_ContainerApiSymmetry::ranged_ctor_non_associative_impl() const [with Container = std::forward_list<Complex>]’:
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:270:111:   required from here
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:454:13: error: range-based ‘for’ expression of type ‘const Complex []’ has incomplete type
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp: In instantiation of ‘void tst_ContainerApiSymmetry::ranged_ctor_non_associative_impl() const [with Container = std::set<int>]’:
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:273:85:   required from here
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:454:13: error: range-based ‘for’ expression of type ‘const int []’ has incomplete type
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp: In instantiation of ‘void tst_ContainerApiSymmetry::ranged_ctor_non_associative_impl() const [with Container = std::set<Movable>]’:
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:274:93:   required from here
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:454:13: error: range-based ‘for’ expression of type ‘const Movable []’ has incomplete type
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp: In instantiation of ‘void tst_ContainerApiSymmetry::ranged_ctor_non_associative_impl() const [with Container = std::set<Complex>]’:
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:275:93:   required from here
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:454:13: error: range-based ‘for’ expression of type ‘const Complex []’ has incomplete type
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp: In instantiation of ‘void tst_ContainerApiSymmetry::ranged_ctor_non_associative_impl() const [with Container = std::multiset<int>]’:
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:278:95:   required from here
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:454:13: error: range-based ‘for’ expression of type ‘const int []’ has incomplete type
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp: In instantiation of ‘void tst_ContainerApiSymmetry::ranged_ctor_non_associative_impl() const [with Container = std::multiset<Movable>]’:
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:279:103:   required from here
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:454:13: error: range-based ‘for’ expression of type ‘const Movable []’ has incomplete type
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp: In instantiation of ‘void tst_ContainerApiSymmetry::ranged_ctor_non_associative_impl() const [with Container = std::multiset<Complex>]’:
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:280:103:   required from here
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:454:13: error: range-based ‘for’ expression of type ‘const Complex []’ has incomplete type
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp: In instantiation of ‘void tst_ContainerApiSymmetry::ranged_ctor_non_associative_impl() const [with Container = std::unordered_set<int>]’:
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:283:105:   required from here
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:454:13: error: range-based ‘for’ expression of type ‘const int []’ has incomplete type
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp: In instantiation of ‘void tst_ContainerApiSymmetry::ranged_ctor_non_associative_impl() const [with Container = std::unordered_set<Movable>]’:
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:284:113:   required from here
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:454:13: error: range-based ‘for’ expression of type ‘const Movable []’ has incomplete type
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp: In instantiation of ‘void tst_ContainerApiSymmetry::ranged_ctor_non_associative_impl() const [with Container = std::unordered_set<Complex>]’:
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:285:113:   required from here
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:454:13: error: range-based ‘for’ expression of type ‘const Complex []’ has incomplete type
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp: In instantiation of ‘void tst_ContainerApiSymmetry::ranged_ctor_non_associative_impl() const [with Container = std::unordered_multiset<int>]’:
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:288:115:   required from here
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:454:13: error: range-based ‘for’ expression of type ‘const int []’ has incomplete type
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp: In instantiation of ‘void tst_ContainerApiSymmetry::ranged_ctor_non_associative_impl() const [with Container = std::unordered_multiset<Movable>]’:
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:289:123:   required from here
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:454:13: error: range-based ‘for’ expression of type ‘const Movable []’ has incomplete type
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp: In instantiation of ‘void tst_ContainerApiSymmetry::ranged_ctor_non_associative_impl() const [with Container = std::unordered_multiset<Complex>]’:
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:290:123:   required from here
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:454:13: error: range-based ‘for’ expression of type ‘const Complex []’ has incomplete type
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp: In instantiation of ‘void tst_ContainerApiSymmetry::ranged_ctor_non_associative_impl() const [with Container = QSet<int>]’:
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:293:78:   required from here
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:454:13: error: range-based ‘for’ expression of type ‘const int []’ has incomplete type
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp: In instantiation of ‘void tst_ContainerApiSymmetry::ranged_ctor_non_associative_impl() const [with Container = QSet<Movable>]’:
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:294:86:   required from here
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:454:13: error: range-based ‘for’ expression of type ‘const Movable []’ has incomplete type
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp: In instantiation of ‘void tst_ContainerApiSymmetry::ranged_ctor_non_associative_impl() const [with Container = QSet<Complex>]’:
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:295:86:   required from here
      /qt5/qtbase/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp:454:13: error: range-based ‘for’ expression of type ‘const Complex []’ has incomplete type
      ninja: build stopped: subcommand failed.
      

        Attachments

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

          Activity

            People

            Assignee:
            cnn Qt Core & Network
            Reporter:
            jkauffmann Johannes Kauffmann
            PM Owner:
            Vladimir Minenko Vladimir Minenko
            RnD Owner:
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes