https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98102
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: gs...@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=std -fopenacc $ g++-11-20201129 -c pr61654.C -g -O1 -fvtable-verify=std -fopenacc $ $ g++-11-20201129 -c pr61654.C -g -O2 -fvtable-verify=std -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