From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EF1F3395CC7F; Wed, 2 Dec 2020 17:17:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EF1F3395CC7F From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/98102] New: [9/10/11 Regression] ICE tree check: expected block, have function_decl in change_scope, at final.c:1480 Date: Wed, 02 Dec 2020 17:17:40 +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: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gscfq@t-online.de 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 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: Wed, 02 Dec 2020 17:17:41 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98102 Bug ID: 98102 Summary: [9/10/11 Regression] ICE tree check: expected block, have function_decl in change_scope, at final.c:1480 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gscfq@t-online.de Target Milestone: --- This combination of options affects several files from gcc/testsuite at -O2+, and goes back to r7 : $ g++-6 -c pr61654.C -g -O2 -fvtable-verify=3Dstd -fopenacc $ g++-11-20201129 -c pr61654.C -g -O1 -fvtable-verify=3Dstd -fopenacc $ $ g++-11-20201129 -c pr61654.C -g -O2 -fvtable-verify=3Dstd -fopenacc during RTL pass: final pr61654.C: In function '(static initializers for pr61654.C)': pr61654.C:17:12: internal compiler error: tree check: expected block, have function_decl in change_scope, at final.c:1480 17 | return a ('\0'); | ~~^~~~~~ 0x64cac4 tree_check_failed(tree_node const*, char const*, int, char const*, ...) ../../gcc/tree.c:9810 0xbc4b19 tree_check(tree_node*, char const*, int, char const*, tree_code) ../../gcc/tree.h:3331 0xbc4b19 change_scope ../../gcc/final.c:1480 0xbce0c0 reemit_insn_block_notes ../../gcc/final.c:1581 0xbce0c0 final_start_function_1 ../../gcc/final.c:1784 0xbce609 rest_of_handle_final ../../gcc/final.c:4675 0xbce609 execute ../../gcc/final.c:4754=