From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2CA653982403; Thu, 19 May 2022 23:22:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2CA653982403 From: "akira65535 at protonmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/105667] New: Internal compiler segmentation fault Date: Thu, 19 May 2022 23:22: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: 12.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: akira65535 at protonmail 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: Thu, 19 May 2022 23:22:56 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105667 Bug ID: 105667 Summary: Internal compiler segmentation fault Product: gcc Version: 12.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: akira65535 at protonmail dot com Target Milestone: --- Created attachment 53003 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D53003&action=3Dedit Simple cpp file which causes the bug ~ $ g++ -v Using built-in specs. COLLECT_GCC=3Dg++ COLLECT_LTO_WRAPPER=3D/usr/libexec/gcc/x86_64-pc-linux-gnu/12.1.0/lto-wrapp= er Target: x86_64-pc-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-12.1.0/work/gcc-12.1.0/configure --host=3Dx86_64-pc-linux-gnu --build=3Dx86_64-pc-linux-gnu --prefix=3D/usr --bindir=3D/usr/x86_64-pc-linux-gnu/gcc-bin/12.1.0 --includedir=3D/usr/lib/gcc/x86_64-pc-linux-gnu/12.1.0/include --datadir=3D/usr/share/gcc-data/x86_64-pc-linux-gnu/12.1.0 --mandir=3D/usr/share/gcc-data/x86_64-pc-linux-gnu/12.1.0/man --infodir=3D/usr/share/gcc-data/x86_64-pc-linux-gnu/12.1.0/info --with-gxx-include-dir=3D/usr/lib/gcc/x86_64-pc-linux-gnu/12.1.0/include/g+= +-v12 --with-python-dir=3D/share/gcc-data/x86_64-pc-linux-gnu/12.1.0/python --enable-languages=3Dc,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --disable-libunwind-exceptions --enable-checking=3Drelease --with-bugurl=3Dhttps://bugs.gentoo.org/ --with-pkgversion=3D'Gentoo 12.1.0= p5' --disable-esp --enable-libstdcxx-time --disable-libstdcxx-pch --enable-shar= ed --enable-threads=3Dposix --enable-__cxa_atexit --enable-clocale=3Dgnu --enable-multilib --with-multilib-list=3Dm32,m64 --disable-fixed-point --enable-targets=3Dall --enable-libgomp --disable-libssp --disable-libada --disable-cet --disable-systemtap --disable-valgrind-annotations --disable-vtable-verify --disable-libvtv --without-zstd --enable-lto --without-isl --enable-default-pie --enable-default-ssp Thread model: posix Supported LTO compression algorithms: zlib gcc version 12.1.0 (Gentoo 12.1.0 p5) ~ $ g++ -std=3Dc++20 test.cpp test.cpp: In instantiation of =E2=80=98Example::crash():: [with long unsigned int i =3D 0]=E2=80=99: test.cpp:17:10: required from =E2=80=98static void Example::crash() [= with Ts =3D {int, int}]=E2=80=99 test.cpp:22:29: required from here test.cpp:8:37: internal compiler error: Segmentation fault 8 | using Types =3D typename lambda_t<[] () {}>::type; | ^~~~~~~~~~~~~~~~~~~~~ 0x1b4314e internal_error(char const*, ...) ???:0 0x7fbb64 template_parms_to_args(tree_node*) ???:0 0x82916e tsubst_lambda_expr(tree_node*, tree_node*, int, tree_node*) ???:0 0x80bd96 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, boo= l, bool) ???:0 0x82093f tsubst_template_args(tree_node*, tree_node*, int, tree_node*) ???:0 0x814165 tsubst(tree_node*, tree_node*, int, tree_node*) ???:0 0x82093f tsubst_template_args(tree_node*, tree_node*, int, tree_node*) ???:0 0x813bbc tsubst(tree_node*, tree_node*, int, tree_node*) ???:0 0x81335d tsubst(tree_node*, tree_node*, int, tree_node*) ???:0 0x81add9 instantiate_decl(tree_node*, bool, bool) ???:0 0x72e94f mark_used(tree_node*, int) ???:0 0x6b4f8a build_op_call(tree_node*, vec**, int) ???:0 0x840d98 finish_call_expr(tree_node*, vec**, b= ool, bool, int) ???:0 0x80a61e tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, boo= l, bool) ???:0 0x81add9 instantiate_decl(tree_node*, bool, bool) ???:0 0x82fb1b instantiate_pending_templates(int) ???:0 0x730608 c_parse_final_cleanups() ???:0=