https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118470
Bug ID: 118470 Summary: [15 Regression] ICE in gimplify_var_or_parm_decl, at gimplify.cc:3341 Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: doko at gcc dot gnu.org Target Milestone: --- Created attachment 60150 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60150&action=edit preprocessed source seen with trunk 20250112 on x86_64-linux-gnu, building the powerdevil package g++ -c -std=gnu++20 -Wno-invalid-offsetof -Wno-literal-suffix -Wno-deprecated-declarations -Wno-subobject-linkage screenbrightnesscontrol.ii screenbrightnesscontrol.ii: In function 'void ScreenBrightnessControl::queryAndUpdateDisplays(_ZN23ScreenBrightnessControl22queryAndUpdateDisplaysEv.Frame*)': screenbrightnesscontrol.ii:118151:1: internal compiler error: in gimplify_var_or_parm_decl, at gimplify.cc:3341 118151 | } | ^ 0x31b32a6 diagnostic_context::diagnostic_impl(rich_location*, diagnostic_metadata const*, diagnostic_option_id, char const*, __va_list_tag (*) [1], diagnostic_t) ???:0 0x31c9073 internal_error(char const*, ...) ???:0 0xfd86f9 fancy_abort(char const*, int, char const*) ???:0 0x162cf86 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ???:0 0x162d2ab gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ???:0 0x164151c gimplify_arg(tree_node**, gimple**, unsigned long, bool) ???:0 0x106ec3d cp_gimplify_expr(tree_node**, gimple**, gimple**) ???:0 0x162c65d gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ???:0 0x164151c gimplify_arg(tree_node**, gimple**, unsigned long, bool) ???:0 0x162d683 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ???:0 0x162d663 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ???:0 0x162f748 gimplify_stmt(tree_node**, gimple**) ???:0 0x162e20b gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ???:0 0x162f748 gimplify_stmt(tree_node**, gimple**) ???:0 0x162d0b3 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ???:0 0x162f748 gimplify_stmt(tree_node**, gimple**) ???:0 0x162e20b gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ???:0 0x162f748 gimplify_stmt(tree_node**, gimple**) ???:0 0x162d0b3 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ???:0 0x162f748 gimplify_stmt(tree_node**, gimple**) ???:0 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. cvise 2.11 based on LLVM 19 has some issues reducing: $ cvise --clang-delta-std=c++20 ./cr2.sh screenbrightnesscontrol.ii 00:00:05 INFO ===< 4158900 >=== 00:00:05 INFO running 14 interestingness tests in parallel 00:00:05 INFO INITIAL PASSES 00:00:05 INFO ===< IncludesPass >=== 00:00:05 INFO ===< UnIfDefPass >=== 00:00:05 INFO ===< CommentsPass >=== 00:00:10 INFO ===< IfPass >=== 00:00:10 INFO ===< LineMarkersPass >=== 00:00:19 INFO (5.0%, 4750748 bytes, 119041 lines) 00:00:19 INFO ===< BlankPass >=== 00:00:24 INFO (5.9%, 4706371 bytes, 119041 lines) 00:00:31 INFO (6.3%, 4685421 bytes, 118457 lines) 00:00:31 INFO ===< ClangBinarySearchPass::replace-function-def-with-decl (30 T) >=== 00:00:34 WARNING clang_delta --query-instances failed with exit code -11: 00:00:34 INFO ===< ClangBinarySearchPass::remove-unused-function (30 T) >=== 00:00:37 WARNING clang_delta --query-instances failed with exit code -11: 00:00:37 INFO ===< ClangBinarySearchPass::replace-function-def-with-decl (30 T) >=== 00:00:37 INFO cache hit for screenbrightnesscontrol.ii 00:00:37 INFO ===< ClangBinarySearchPass::remove-unused-function (30 T) >=== 00:00:37 INFO cache hit for screenbrightnesscontrol.ii 00:00:37 INFO ===< ClangBinarySearchPass::replace-function-def-with-decl >=== 00:00:39 WARNING clang_delta --query-instances failed with exit code -11: 00:00:39 INFO ===< ClangBinarySearchPass::remove-unused-function >=== 00:00:42 WARNING clang_delta --query-instances failed with exit code -11: 00:00:42 INFO ===< LinesPass::0 >=== 00:05:48 WARNING Test timed out. 00:05:48 INFO Created extra directory cvise_extra_0000 for you to look at later 00:05:48 WARNING Test timed out. 00:05:48 INFO Created extra directory cvise_extra_0001 for you to look at later 00:05:48 WARNING Test timed out. 00:05:48 INFO Created extra directory cvise_extra_0002 for you to look at later 00:05:57 WARNING Test timed out. 00:05:57 INFO Created extra directory cvise_extra_0003 for you to look at later 00:08:23 WARNING Test timed out. 00:08:23 INFO Created extra directory cvise_extra_0004 for you to look at later 00:09:55 WARNING Test timed out. 00:09:55 INFO Created extra directory cvise_extra_0005 for you to look at later 00:11:19 WARNING Test timed out. 00:11:19 INFO Created extra directory cvise_extra_0006 for you to look at later 00:11:20 WARNING Test timed out. 00:11:20 INFO Created extra directory cvise_extra_0007 for you to look at later