https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99062
Bug ID: 99062 Summary: [10/11 Regression] ICE in tree_to_uhwi, at tree.h:4579 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- Changed between 20190512 and 20190519 : $ cat z1.cc enum { a = 1 << 31 }; void *f () __attribute__ ((assume_aligned (a, 4))); $ g++-11-20210207 -c z1.cc z1.cc:2:50: internal compiler error: in tree_to_uhwi, at tree.h:4579 2 | void *f () __attribute__ ((assume_aligned (a, 4))); | ^ 0x8835a6 tree_to_uhwi(tree_node const*) ../../gcc/tree.h:4579 0x8835a6 handle_assume_aligned_attribute ../../gcc/c-family/c-attribs.c:3565 0x823311 decl_attributes(tree_node**, tree_node*, int, tree_node*) ../../gcc/attribs.c:724 0x6e6fc7 cplus_decl_attributes(tree_node**, tree_node*, int) ../../gcc/cp/decl2.c:1596 0x6272a2 grokfndecl ../../gcc/cp/decl.c:9983 0x6d5261 grokdeclarator(cp_declarator const*, cp_decl_specifier_seq*, decl_context, int, tree_node**) ../../gcc/cp/decl.c:13818 0x6da5f8 start_decl(cp_declarator const*, cp_decl_specifier_seq*, int, tree_node*, tree_node*, tree_node**) ../../gcc/cp/decl.c:5333 0x79bffb cp_parser_init_declarator ../../gcc/cp/parser.c:21660 0x77cf3a cp_parser_simple_declaration ../../gcc/cp/parser.c:14381 0x7a0ea5 cp_parser_declaration ../../gcc/cp/parser.c:14078 0x7a03db cp_parser_translation_unit ../../gcc/cp/parser.c:4936 0x7a03db c_parse_file() ../../gcc/cp/parser.c:45179 0x86d982 c_common_parse_file() ../../gcc/c-family/c-opts.c:1218