From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 767DC3858C2C; Thu, 30 Sep 2021 22:13:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 767DC3858C2C From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/102548] gcc segmentation fault in cc1plus (with repro case) Date: Thu, 30 Sep 2021 22:13:17 +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: 10.3.1 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: Thu, 30 Sep 2021 22:13:17 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102548 --- Comment #1 from Andrew Pinski --- apinski@xeond:~/src$ ~/upstream-gcc/bin/gcc cmTimestamp.ii -m32 -S E:/Programming/Source/msys2/MINGW-packages/mingw-w64-cmake/src/cmake-3.21.2= /Source/cmTimestamp.cxx: In lambda function: E:/Programming/Source/msys2/MINGW-packages/mingw-w64-cmake/src/cmake-3.21.2= /Source/cmTimestamp.cxx:208:12: internal compiler error: tree check: expected tree_list, have error_mark in apply_identity_attributes, at cp/tree.c:1499 0x8e5b60 tree_check_failed(tree_node const*, char const*, int, char const*, ...) /home/apinski/src/upstream-gcc/gcc/gcc/tree.c:8689 0x7a8647 tree_check(tree_node*, char const*, int, char const*, tree_code) /home/apinski/src/upstream-gcc/gcc/gcc/tree.h:3427 0x7a8647 apply_identity_attributes /home/apinski/src/upstream-gcc/gcc/gcc/cp/tree.c:1499 0x7a8647 strip_typedefs(tree_node*, bool*, unsigned int) /home/apinski/src/upstream-gcc/gcc/gcc/cp/tree.c:1816 0xc0761d strip_typedefs(tree_node*, bool*, unsigned int) /home/apinski/src/upstream-gcc/gcc/gcc/cp/tree.c:1548 0xc0761d strip_typedefs(tree_node*, bool*, unsigned int) /home/apinski/src/upstream-gcc/gcc/gcc/cp/tree.c:1583 0xb70012 canonicalize_type_argument(tree_node*, int) /home/apinski/src/upstream-gcc/gcc/gcc/cp/pt.c:8176 0xb70012 canonicalize_type_argument(tree_node*, int) /home/apinski/src/upstream-gcc/gcc/gcc/cp/pt.c:8171 0xb9ee42 unify /home/apinski/src/upstream-gcc/gcc/gcc/cp/pt.c:23817 0xb9b288 unify_one_argument /home/apinski/src/upstream-gcc/gcc/gcc/cp/pt.c:22271 0xba877a type_unification_real /home/apinski/src/upstream-gcc/gcc/gcc/cp/pt.c:22390 0xb7f4e0 do_auto_deduction(tree_node*, tree_node*, tree_node*, int, auto_deduction_context, tree_node*, int) /home/apinski/src/upstream-gcc/gcc/gcc/cp/pt.c:29805 0xc2454f check_return_expr(tree_node*, bool*) /home/apinski/src/upstream-gcc/gcc/gcc/cp/typeck.c:10315 0xbd1eaf finish_return_stmt(tree_node*) /home/apinski/src/upstream-gcc/gcc/gcc/cp/semantics.c:1193 0xb34bc5 cp_parser_jump_statement /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.c:14162 0xb34bc5 cp_parser_statement /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.c:12172 0xb3583d cp_parser_statement_seq_opt /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.c:12713 0xb35918 cp_parser_compound_statement /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.c:12662 0xb36647 cp_parser_function_body /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.c:24893 0xb36647 cp_parser_lambda_body /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.c:11654 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions.=