https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111890
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Full backtrace: ``` t1.cc:8:18: internal compiler error: Segmentation fault 8 | friend auto operator+(const Iterator &it, int) {} | ^~~~~~~~ 0x12dabdf crash_signal /home/apinski/src/upstream-gcc-git/gcc/gcc/toplev.cc:314 0x7f6489454def ??? /usr/src/debug/glibc-2.34-60.el9.x86_64/signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0 0xc4156c tree_check(tree_node*, char const*, int, char const*, tree_code) /home/apinski/src/upstream-gcc-git/gcc/gcc/tree.h:3595 0xc4156c tsubst_friend_function /home/apinski/src/upstream-gcc-git/gcc/gcc/cp/pt.cc:11351 0xc42536 instantiate_class_template(tree_node*) /home/apinski/src/upstream-gcc-git/gcc/gcc/cp/pt.cc:12543 0xc95550 complete_type(tree_node*) /home/apinski/src/upstream-gcc-git/gcc/gcc/cp/typeck.cc:138 0xaaee4b start_decl_1(tree_node*, bool) /home/apinski/src/upstream-gcc-git/gcc/gcc/cp/decl.cc:6009 0xaaee4b start_decl_1(tree_node*, bool) /home/apinski/src/upstream-gcc-git/gcc/gcc/cp/decl.cc:5988 0xacee2f start_decl(cp_declarator const*, cp_decl_specifier_seq*, int, tree_node*, tree_node*, tree_node**) /home/apinski/src/upstream-gcc-git/gcc/gcc/cp/decl.cc:5975 0xbda5c5 cp_parser_init_declarator /home/apinski/src/upstream-gcc-git/gcc/gcc/cp/parser.cc:23135 0xbaddd8 cp_parser_simple_declaration /home/apinski/src/upstream-gcc-git/gcc/gcc/cp/parser.cc:15621 0xbe5b71 cp_parser_declaration /home/apinski/src/upstream-gcc-git/gcc/gcc/cp/parser.cc:15307 0xbe6a42 cp_parser_toplevel_declaration /home/apinski/src/upstream-gcc-git/gcc/gcc/cp/parser.cc:15328 0xbe6a42 cp_parser_translation_unit /home/apinski/src/upstream-gcc-git/gcc/gcc/cp/parser.cc:5192 0xbe6a42 c_parse_file() /home/apinski/src/upstream-gcc-git/gcc/gcc/cp/parser.cc:50534 0xd2c621 c_common_parse_file() /home/apinski/src/upstream-gcc-git/gcc/gcc/c-family/c-opts.cc:1278 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. ```