From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 542C4385803E; Sat, 9 Jan 2021 09:34:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 542C4385803E From: "bjornsundin02 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/98611] New: [concepts] internal compiler error: in get_underlying_template, at cp/pt.c:6494 Date: Sat, 09 Jan 2021 09:34:55 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 10.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bjornsundin02 at gmail dot com X-Bugzilla-Status: UNCONFIRMED 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: 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: Sat, 09 Jan 2021 09:34:55 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98611 Bug ID: 98611 Summary: [concepts] internal compiler error: in get_underlying_template, at cp/pt.c:6494 Product: gcc Version: 10.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: bjornsundin02 at gmail dot com Target Milestone: --- Created attachment 49924 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D49924&action=3Dedit Preprocessed minimal C++20 code that crashes the compiler I created a 23 lines long piece of code that uses C++20 concepts with no includes that crashes the compiler. Below is the full output of the command "gcc -v -save-temps -std=3Dc++20 minimal.cpp". I did however try this on godbolt.org, both with trunk and 10.2.0 versions and it crashed the compile= r as well, so most of this information is probably not needed anyways. Compiler explorer link: https://godbolt.org/z/eqdzoc Using built-in specs. COLLECT_GCC=3Dgcc COLLECT_LTO_WRAPPER=3Dc:/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/10.2= .0/lto-wrapper.exe Target: x86_64-w64-mingw32 Configured with: ../configure --prefix=3D/d/Prog/winlibs64-10.2.0/home/inst_gcc-10.2.0/share/gcc --build=3Dx86_64-w64-mingw32 --host=3Dx86_64-w64-mingw32 --with-pkgversion=3D'MinGW-W64 x86_64-posix-seh, built by Brecht Sanders' --with-tune=3Dgeneric --enable-checking=3Drelease --enable-threads=3Dposix --disable-sjlj-exceptions --disable-libunwind-exceptions --enable-serial-configure --disable-bootstrap --enable-host-shared --enable-plugin --enable-default-ssp --disable-rpath --disable-libstdcxx-pch --enable-libstdcxx-time=3Dyes --disable-libstdcxx-debug --disable-version-specific-runtime-libs --with-stabs --disable-symvers --enable-languages=3Dc,c++,fortran,lto,objc,obj-c++,d --disable-gold --disable-nls --disable-stage1-checking --disable-win32-registry --disable-multilib --enable-ld --enable-libquadmath --enable-libada --enable-libssp --enable-libstdcxx --enable-lto --enable-fully-dynamic-stri= ng --enable-libgomp --enable-graphite --enable-mingw-wildcard=20 --with-mpc=3D/d/Prog/winlibs64-10.2.0/custombuilt --with-mpfr=3D/d/Prog/winlibs64-10.2.0/custombuilt --with-gmp=3D/d/Prog/winlibs64-10.2.0/custombuilt --with-isl=3D/d/Prog/winlibs64-10.2.0/custombuilt --enable-install-libiberty --enable-__cxa_atexit --without-included-gettext --with-diagnostics-color= =3Dauto --with-libiconv --with-system-zlib --with-build-sysroot=3D/d/Prog/winlibs64-10.2.0/home/gcc-10.2.0/build_mingw= /mingw-w64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 10.2.0 (MinGW-W64 x86_64-posix-seh, built by Brecht Sanders) COLLECT_GCC_OPTIONS=3D'-v' '-save-temps' '-std=3Dc++2a' '-mtune=3Dgeneric' '-march=3Dx86-64' c:/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/10.2.0/cc1plus.exe -E -qu= iet -v -iprefix c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/10.2.0/ -D_REENTRA= NT minimal.cpp -mtune=3Dgeneric -march=3Dx86-64 -std=3Dc++2a -fpch-preprocess = -o minimal.ii ignoring duplicate directory "c:/mingw64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../inc= lude/c++/10.2.0" ignoring duplicate directory "c:/mingw64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../inc= lude/c++/10.2.0/x86_64-w64-mingw32" ignoring duplicate directory "c:/mingw64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../inc= lude/c++/10.2.0/backward" ignoring duplicate directory "c:/mingw64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/10.2.0/include" ignoring nonexistent directory "D:/Prog/winlibs64-10.2.0/home/inst_gcc-10.2.0/share/gcc/include" ignoring nonexistent directory "/d/Prog/winlibs64-10.2.0/home/inst_gcc-10.2.0/share/gcc/include" ignoring duplicate directory "c:/mingw64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/10.2.0/include-fixed" ignoring duplicate directory "c:/mingw64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86= _64-w64-mingw32/include" ignoring nonexistent directory "/mingw/include" #include "..." search starts here: #include <...> search starts here: c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../include/c++= /10.2.0 c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../include/c++= /10.2.0/x86_64-w64-mingw32 c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../include/c++= /10.2.0/backward c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/10.2.0/include c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../include c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/10.2.0/include-fixed c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-= mingw32/include End of search list. COLLECT_GCC_OPTIONS=3D'-v' '-save-temps' '-std=3Dc++2a' '-mtune=3Dgeneric' '-march=3Dx86-64' c:/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/10.2.0/cc1plus.exe -fpreprocessed minimal.ii -quiet -dumpbase minimal.cpp -mtune=3Dgeneric -march=3Dx86-64 -auxbase minimal -std=3Dc++2a -version -o minimal.s GNU C++17 (MinGW-W64 x86_64-posix-seh, built by Brecht Sanders) version 10.= 2.0 (x86_64-w64-mingw32) compiled by GNU C version 10.2.0, GMP version 6.2.0, MPFR version 4.0.2, MPC version 1.1.0, isl version isl-0.22.1-GMP GGC heuristics: --param ggc-min-expand=3D100 --param ggc-min-heapsize=3D131= 072 GNU C++17 (MinGW-W64 x86_64-posix-seh, built by Brecht Sanders) version 10.= 2.0 (x86_64-w64-mingw32) compiled by GNU C version 10.2.0, GMP version 6.2.0, MPFR version 4.0.2, MPC version 1.1.0, isl version isl-0.22.1-GMP GGC heuristics: --param ggc-min-expand=3D100 --param ggc-min-heapsize=3D131= 072 Compiler executable checksum: 0faeb1ddadd8f43fea33747988e615bd minimal.cpp: In function 'int main()': minimal.cpp:15:4: internal compiler error: in get_underlying_template, at cp/pt.c:6494 15 | { _Class{object} } -> IsSame; | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libbacktrace could not find executable to open Please submit a full bug report, with preprocessed source if appropriate. See for instructions.=