From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6022E385840A; Sun, 13 Feb 2022 23:57:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6022E385840A From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/104523] G++ crash when compiling a simple module that includes pybind11/stl.h Date: Sun, 13 Feb 2022 23:57:30 +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.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org 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: 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: Sun, 13 Feb 2022 23:57:30 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104523 --- Comment #3 from Andrew Pinski --- apinski@xeond:~/src/upstream-gcc$ ~/upstream-gcc/bin/gcc t.ii -std=3Dc++20 -fmodules-ts PyBind11Module.cpp:5:9: internal compiler error: tree check: expected none = of template_decl, have template_decl in add_specializations, at cp/module.cc:1= 2971 0x8f8f58 tree_not_check_failed(tree_node const*, char const*, int, char con= st*, ...) /home/apinski/src/upstream-gcc/gcc/gcc/tree.c:8739 0x75c6b1 tree_not_check(tree_node*, char const*, int, char const*, tree_cod= e) /home/apinski/src/upstream-gcc/gcc/gcc/tree.h:3450 0x75c6b1 depset::hash::add_specializations(bool) /home/apinski/src/upstream-gcc/gcc/gcc/cp/module.cc:12971 0xb00fa5 module_state::write(elf_out*, cpp_reader*) /home/apinski/src/upstream-gcc/gcc/gcc/cp/module.cc:17606 0xb02590 finish_module_processing(cpp_reader*) /home/apinski/src/upstream-gcc/gcc/gcc/cp/module.cc:19876 0xa92a5b c_parse_final_cleanups() /home/apinski/src/upstream-gcc/gcc/gcc/cp/decl2.c:5310 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. Reducing.=