From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 24C923892447; Tue, 12 Jan 2021 09:38:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 24C923892447 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/97284] internal compiler error: 'global_options' are modified in local context Date: Tue, 12 Jan 2021 09:38:10 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jan 2021 09:38:10 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97284 --- Comment #9 from Martin Li=C5=A1ka --- (In reply to Ville Voutilainen from comment #8) > Also, you can just try the actual build, if you follow > https://wiki.qt.io/Building_Qt_6_from_Git I tried, but it fails quite fast with: /home/marxin/bin/gcc/bin/c++ -DHAVE_CONFIG_H -DPCRE2_CODE_UNIT_WIDTH=3D16 -DPCRE2_DISABLE_JIT -DQT_BOOTSTRAPPED -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_FOREACH -DQT_USE_QSTRINGBUILDER -DQT_VERSION_MAJOR=3D6 -DQT_VERSION_MINOR=3D0 -DQT_VERSION_PATCH=3D1 -DQT_VERSION_STR=3D\"6.0.1\" -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../qtbase/src/tools/bootstrap/../../3rdparty/pcre2/src -Iqtbase/src/corelib/Core_autogen/include -Iqtbase/include -Iqtbase/include/QtCore -I../qtbase/src/corelib -Iqtbase/src/corelib -Iqtbase/src/corelib/global -I../qtbase/src/corelib/../3rdparty/tinycbor/src -Iqtbase/include/QtCore/6.0.1 -Iqtbase/include/QtCore/6.0.1/QtCore -I../qtbase/src/corelib/../3rdparty/forkfd -Iqtbase/src/corelib/.rcc -I../qtbase/mkspecs/linux-g++ -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -Iqtbase/src/xml/Xml_autogen/include -Iqtbase/include/QtXml -I../qtbase/src/xml -Iqtbase/src/xml -Iqtbase/include/QtXml/6.0.1 -Iqtbase/include/QtXml/6.0.1/QtXml -I../qtbase/src/tools/bootstrap/.. -I../qtbase/src/tools/bootstrap/../../3rdparty/tinycbor/src -DNDEBUG -O2 -f= PIC -fvisibility=3Dhidden -fvisibility-inlines-hidden -Wall -Wextra -ffunction-sections -fdata-sections -Wsuggest-override -std=3Dgnu++17 -MD -= MT qtbase/src/tools/bootstrap/CMakeFiles/Bootstrap.dir/__/__/corelib/global/qf= loat16.cpp.o -MF qtbase/src/tools/bootstrap/CMakeFiles/Bootstrap.dir/__/__/corelib/global/qf= loat16.cpp.o.d -o qtbase/src/tools/bootstrap/CMakeFiles/Bootstrap.dir/__/__/corelib/global/qf= loat16.cpp.o -c ../qtbase/src/corelib/global/qfloat16.cpp In file included from qtbase/include/QtCore/qanystringview.h:1, from qtbase/include/QtCore/../../../../qtbase/src/corelib/text/qstring.h:56, from qtbase/include/QtCore/qstring.h:1, from qtbase/include/QtCore/../../../../qtbase/src/corelib/tools/qhashfunctions.h= :44, from qtbase/include/QtCore/qhashfunctions.h:1, from qtbase/include/QtCore/../../../../qtbase/src/corelib/tools/qvarlengtharray.= h:47, from qtbase/include/QtCore/qvarlengtharray.h:1, from qtbase/include/QtCore/../../../../qtbase/src/corelib/kernel/qmetatype.h:49, from qtbase/include/QtCore/qmetatype.h:1, from ../qtbase/src/corelib/global/qfloat16.h:45, from ../qtbase/src/corelib/global/qfloat16.cpp:41: qtbase/include/QtCore/../../../../qtbase/src/corelib/text/qanystringview.h:= 250:46: error: =E2=80=98numeric_limits=E2=80=99 is not a member of =E2=80=98std=E2= =80=99 250 | static constexpr size_t SizeMask =3D (std::numeric_limits::max)() / 4; | ^~~~~~~~~~~~~~ qtbase/include/QtCore/../../../../qtbase/src/corelib/text/qanystringview.h:= 250:67: error: expected primary-expression before =E2=80=98>=E2=80=99 token 250 | static constexpr size_t SizeMask =3D (std::numeric_limits::max)() / 4; | ^ qtbase/include/QtCore/../../../../qtbase/src/corelib/text/qanystringview.h:= 250:70: error: =E2=80=98::max=E2=80=99 has not been declared; did you mean =E2=80= =98std::max=E2=80=99? 250 | static constexpr size_t SizeMask =3D (std::numeric_limits::max)() / 4; |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 ^~~ |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 std::max In file included from /home/marxin/bin/gcc/include/c++/11.0.0/algorithm:62, from qtbase/include/QtCore/../../../../qtbase/src/corelib/global/qglobal.h:126, from qtbase/include/QtCore/qglobal.h:1, from ../qtbase/src/corelib/global/qfloat16.h:44, from ../qtbase/src/corelib/global/qfloat16.cpp:41: /home/marxin/bin/gcc/include/c++/11.0.0/bits/stl_algo.h:3467:5: note: =E2=80=98std::max=E2=80=99 declared here 3467 | max(initializer_list<_Tp> __l, _Compare __comp) | ^~~ In file included from qtbase/include/QtCore/qanystringview.h:1, from qtbase/include/QtCore/../../../../qtbase/src/corelib/text/qstring.h:56, from qtbase/include/QtCore/qstring.h:1, from qtbase/include/QtCore/../../../../qtbase/src/corelib/tools/qhashfunctions.h= :44, from qtbase/include/QtCore/qhashfunctions.h:1, from qtbase/include/QtCore/../../../../qtbase/src/corelib/tools/qvarlengtharray.= h:47, from qtbase/include/QtCore/qvarlengtharray.h:1, from qtbase/include/QtCore/../../../../qtbase/src/corelib/kernel/qmetatype.h:49, from qtbase/include/QtCore/qmetatype.h:1, from ../qtbase/src/corelib/global/qfloat16.h:45, from ../qtbase/src/corelib/global/qfloat16.cpp:41: qtbase/include/QtCore/../../../../qtbase/src/corelib/text/qanystringview.h:= 253:46: error: =E2=80=98numeric_limits=E2=80=99 is not a member of =E2=80=98std=E2= =80=99 253 | static constexpr size_t TypeMask =3D (std::numeric_limits::max)() & ~SizeMask; | ^~~~~~~~~~~~~~ qtbase/include/QtCore/../../../../qtbase/src/corelib/text/qanystringview.h:= 253:67: error: expected primary-expression before =E2=80=98>=E2=80=99 token 253 | static constexpr size_t TypeMask =3D (std::numeric_limits::max)() & ~SizeMask; | ^ qtbase/include/QtCore/../../../../qtbase/src/corelib/text/qanystringview.h:= 253:70: error: =E2=80=98::max=E2=80=99 has not been declared; did you mean =E2=80= =98std::max=E2=80=99? 253 | static constexpr size_t TypeMask =3D (std::numeric_limits::max)() & ~SizeMask; |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 ^~~ |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 std::max In file included from /home/marxin/bin/gcc/include/c++/11.0.0/algorithm:62, from qtbase/include/QtCore/../../../../qtbase/src/corelib/global/qglobal.h:126, from qtbase/include/QtCore/qglobal.h:1, from ../qtbase/src/corelib/global/qfloat16.h:44, from ../qtbase/src/corelib/global/qfloat16.cpp:41: /home/marxin/bin/gcc/include/c++/11.0.0/bits/stl_algo.h:3467:5: note: =E2=80=98std::max=E2=80=99 declared here 3467 | max(initializer_list<_Tp> __l, _Compare __comp) | ^~~ In file included from qtbase/include/QtCore/qanystringview.h:1, from qtbase/include/QtCore/../../../../qtbase/src/corelib/text/qstring.h:56, from qtbase/include/QtCore/qstring.h:1, from qtbase/include/QtCore/../../../../qtbase/src/corelib/tools/qhashfunctions.h= :44, from qtbase/include/QtCore/qhashfunctions.h:1, from qtbase/include/QtCore/../../../../qtbase/src/corelib/tools/qvarlengtharray.= h:47, from qtbase/include/QtCore/qvarlengtharray.h:1, from qtbase/include/QtCore/../../../../qtbase/src/corelib/kernel/qmetatype.h:49, from qtbase/include/QtCore/qmetatype.h:1, from ../qtbase/src/corelib/global/qfloat16.h:45, from ../qtbase/src/corelib/global/qfloat16.cpp:41: qtbase/include/QtCore/../../../../qtbase/src/corelib/text/qanystringview.h:= 254:28: error: non-constant condition for static assertion 254 | static_assert(TypeMask =3D=3D (Latin1Flag|TwoByteCodePointFlag)= ); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ qtbase/include/QtCore/../../../../qtbase/src/corelib/text/qanystringview.h:= 264:20: error: enumerator value for =E2=80=98Latin1=E2=80=99 is not an integer cons= tant 264 | Latin1 =3D Latin1Flag, | ^~~~~~~~~~ qtbase/include/QtCore/../../../../qtbase/src/corelib/text/qanystringview.h:= 265:20: error: enumerator value for =E2=80=98Utf16=E2=80=99 is not an integer const= ant 265 | Utf16 =3D TwoByteCodePointFlag, | ^~~~~~~~~~~~~~~~~~~~ qtbase/include/QtCore/../../../../qtbase/src/corelib/text/qanystringview.h:= 266:20: error: enumerator value for =E2=80=98Unused=E2=80=99 is not an integer cons= tant 266 | Unused =3D TypeMask, | ^~~~~~~~=