https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90658
Bug ID: 90658 Summary: ICE in default_conversion, at c/c-typeck.c:2159 Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- Affects versions down to gcc-5 : $ cat z1.c void f (); void g () __attribute__ ((constructor(f))); $ cat z2.c void f (); void g () __attribute__ ((destructor(f))); $ gcc-10-20190526 -c z1.c z1.c:2:1: internal compiler error: in default_conversion, at c/c-typeck.c:2159 2 | void g () __attribute__ ((constructor(f))); | ^~~~ 0x5e641b default_conversion(tree_node*) ../../gcc/c/c-typeck.c:2159 0x68182d get_priority ../../gcc/c-family/c-attribs.c:1545 0x6833cf handle_constructor_attribute ../../gcc/c-family/c-attribs.c:1596 0x5c9e67 decl_attributes(tree_node**, tree_node*, int, tree_node*) ../../gcc/attribs.c:719 0x5e00f5 start_decl(c_declarator*, c_declspecs*, bool, tree_node*) ../../gcc/c/c-decl.c:4977 0x6225c3 c_parser_declaration_or_fndef ../../gcc/c/c-parser.c:2154 0x628733 c_parser_external_declaration ../../gcc/c/c-parser.c:1653 0x6291f9 c_parser_translation_unit ../../gcc/c/c-parser.c:1534 0x6291f9 c_parse_file() ../../gcc/c/c-parser.c:19884 0x670c60 c_common_parse_file() ../../gcc/c-family/c-opts.c:1156