https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112989
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- ``` Breakpoint 1, ggc_free (p=0xfffff6bd4900) at /home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/ggc-page.cc:1612 1612 if (in_gc) (gdb) bt #0 ggc_free (p=0xfffff6bd4900) at /home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/ggc-page.cc:1612 #1 0x0000000000f59a48 in duplicate_decls (newdecl=0xfffff6bd4900, olddecl=0xfffff6bd3d00, hiding=false, was_hidden=false) at /home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/cp/decl.cc:3312 #2 0x00000000010f57a0 in pushdecl (decl=0xfffff6bd4900, hiding=false) at /home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/cp/name-lookup.cc:3920 #3 0x0000000000f62300 in cxx_simulate_builtin_function_decl (decl=0xfffff6bd4900) at /home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/cp/decl.cc:5239 #4 0x0000000001a0c5c8 in simulate_builtin_function_decl (location=255050, name=0x48b5200 "svmla_za64_vg4x1", type=0xfffff6b1cb70, function_code=31409, library_name=0x0, attrs=0xfffff6bced80) at /home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/langhooks.cc:774 #5 0x00000000023ff6b0 in aarch64_sve::function_builder::add_function (this=0xfffffffff490, instance=..., name=0x48b5200 "svmla_za64_vg4x1", fntype=0xfffff6b1cb70, attrs=0xfffff6bced80, required_extensions=5497558138885, overloaded_p=false, placeholder_p=false) at /home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/config/aarch64/aarch64-sve-builtins.cc:1490 #6 0x00000000023ff8e8 in aarch64_sve::function_builder::add_unique_function (this=0xfffffffff490, instance=..., return_type=0xfffff5b30f18, argument_types=..., required_extensions=5497558138885, force_direct_overloads=false) at /home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/config/aarch64/aarch64-sve-builtins.cc:1542 #7 0x0000000002411fe8 in aarch64_sve::build_one (b=..., signature=0x3c16590 "_,su32,t1,v1", group=..., mode_suffix_id=aarch64_sve::MODE_single, ti=0, gi=0, pi=0, force_direct_overloads=false) at /home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/config/aarch64/aarch64-sve-builtins-shapes.cc:331 #8 0x0000000002412508 in aarch64_sve::build_all (b=..., signature=0x3c16590 "_,su32,t1,v1", group=..., mode_suffix_id=aarch64_sve::MODE_single, force_direct_overloads=false) at /home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/config/aarch64/aarch64-sve-builtins-shapes.cc:470 #9 0x0000000002415418 in aarch64_sve::binary_za_slice_opt_single_def::build (this=0x3c165a0 <aarch64_sve::binary_za_slice_opt_single_obj>, b=..., group=...) at /home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/config/aarch64/aarch64-sve-builtins-shapes.cc:1896 #10 0x00000000023fffec in aarch64_sve::function_builder::register_function_group (this=0xfffffffff490, group=...) at /home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/config/aarch64/aarch64-sve-builtins.cc:1637 #11 0x000000000240b0bc in aarch64_sve::handle_arm_sve_h () at /home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/config/aarch64/aarch64-sve-builtins.cc:4588 #12 0x0000000001460b1c in aarch64_pragma_aarch64 () at /home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/config/aarch64/aarch64-c.cc:347 #13 0x0000000001412ebc in c_invoke_pragma_handler (id=14) at /home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/c-family/c-pragma.cc:1741 #14 0x0000000001199f8c in cp_parser_pragma (parser=0xfffff5e54e18, context=pragma_external, if_p=0x0) at /home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/cp/parser.cc:50751 #15 0x0000000001137730 in cp_parser_toplevel_declaration (parser=0xfffff5e54e18) at /home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/cp/parser.cc:15392 #16 0x000000000111f240 in cp_parser_translation_unit (parser=0xfffff5e54e18) at /home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/cp/parser.cc:5273 #17 0x000000000119a354 in c_parse_file () at /home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/cp/parser.cc:50845 #18 0x000000000140a314 in c_common_parse_file () at /home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/c-family/c-opts.cc:1301 #19 0x0000000001d156a4 in compile_file () at /home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/toplev.cc:446 #20 0x0000000001d1989c in do_compile () at /home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/toplev.cc:2150 #21 0x0000000001d19dd4 in toplev::main (this=0xfffffffff8d0, argc=5, argv=0xfffffffffa18) at /home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/toplev.cc:2306 #22 0x000000000358944c in main (argc=5, argv=0xfffffffffa18) at /home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/main.cc:39 ```