https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113264
Bug ID: 113264 Summary: ICE:tree check: expected tree that contains 'common' structure, have 'integer_cst' in copy_list, at tree.cc:1427 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: iamanonymous.cs at gmail dot com Target Milestone: --- Compiler Explorer: https://godbolt.org/z/1bev4r9a4 ******************************************************************************* OS and Platform: $ uname -a: Linux ubuntu 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux ******************************************************************************* gcc version: $ gcc -v Using built-in specs. COLLECT_GCC=/root/gcc_set/202311291030/bin/gcc COLLECT_LTO_WRAPPER=/root/gcc_set/202311291030/libexec/gcc/x86_64-pc-linux-gnu/14.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../gcc/configure --prefix=/root/gcc_set/202311291030 --with-gmp=/root/build_essential --with-mpfr=/root/build_essential --with-mpc=/root/build_essential --enable-languages=c,c++ --disable-multilib --with-sanitizer=address,undefined,thread,leak Thread model: posix Supported LTO compression algorithms: zlib gcc version 14.0.0 20231129 (experimental) (GCC) git version: 99fa0bfd63d97825c4221dcd3123940f1d0e6291 ******************************************************************************* Program: $ cat mutant.c __attribute__((no_sanitize_address)) __attribute__((target_clones("arch=haswell", "default"))) int __tanh() {} __typeof(__tanh) tanhf64 __attribute__((alias("__tanh"))) __attribute__((__copy__(__tanh))); ******************************************************************************* Command Lines: $ gcc mutant.c mutant.c:4:1: internal compiler error: tree check: expected tree that contains ‘common’ structure, have ‘integer_cst’ in copy_list, at tree.cc:1427 4 | __attribute__((__copy__(__tanh))); | ^~~~~~~~~~~~~ 0x859d06 tree_contains_struct_check_failed(tree_node const*, tree_node_structure_enum, char const*, int, char const*) ../../gcc/gcc/tree.cc:9126 0x860f78 contains_struct_check(tree_node*, tree_node_structure_enum, char const*, int, char const*) ../../gcc/gcc/tree.h:3748 0x860f78 copy_list(tree_node*) ../../gcc/gcc/tree.cc:1427 0xa755a5 handle_copy_attribute ../../gcc/gcc/c-family/c-attribs.cc:3077 0x94ad5b decl_attributes(tree_node**, tree_node*, int, tree_node*) ../../gcc/gcc/attribs.cc:886 0x95139d c_decl_attributes ../../gcc/gcc/c/c-decl.cc:5425 0x9689f7 start_decl(c_declarator*, c_declspecs*, bool, tree_node*, bool, unsigned int*) ../../gcc/gcc/c/c-decl.cc:5571 0x9d5757 c_parser_declaration_or_fndef ../../gcc/gcc/c/c-parser.cc:2766 0x9e168b c_parser_external_declaration ../../gcc/gcc/c/c-parser.cc:2046 0x9e2075 c_parser_translation_unit ../../gcc/gcc/c/c-parser.cc:1900 0x9e2075 c_parse_file() ../../gcc/gcc/c/c-parser.cc:26713 0xa564e1 c_common_parse_file() ../../gcc/gcc/c-family/c-opts.cc:1296 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.