https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89812
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-invalid-code Summary|incorrect maximum in error: |[9 Regression] incorrect |requested alignment |maximum in error: requested |‘536870912’ exceeds maximum |alignment ‘536870912’ |2147483648 |exceeds maximum 2147483648 --- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> --- Another bug in the same code: $ cat x.c && gcc -S b.c typedef __attribute__ ((aligned (1U << 29))) char X; b.c:1:1: internal compiler error: in tree_to_shwi, at tree.c:7267 1 | __attribute__ ((aligned ((__UINT64_TYPE__)1 << 63))) char x; | ^~~~~~~~~~~~~ 0x15ba28f tree_to_shwi(tree_node const*) /src/gcc/git-svn/gcc/tree.c:7267 0x90f6ae check_user_alignment(tree_node const*, bool, bool) /src/gcc/git-svn/gcc/c-family/c-common.c:5302 0x97ab42 common_handle_aligned_attribute /src/gcc/git-svn/gcc/c-family/c-attribs.c:2024 0x97b4e4 handle_aligned_attribute /src/gcc/git-svn/gcc/c-family/c-attribs.c:2183 0x7f2bc1 decl_attributes(tree_node**, tree_node*, int, tree_node*) /src/gcc/git-svn/gcc/attribs.c:718 0x80da64 c_decl_attributes /src/gcc/git-svn/gcc/c/c-decl.c:4817 0x80e006 start_decl(c_declarator*, c_declspecs*, bool, tree_node*) /src/gcc/git-svn/gcc/c/c-decl.c:4956 0x8862ac c_parser_declaration_or_fndef /src/gcc/git-svn/gcc/c/c-parser.c:2154 0x884f1a c_parser_external_declaration /src/gcc/git-svn/gcc/c/c-parser.c:1653 0x884a1b c_parser_translation_unit /src/gcc/git-svn/gcc/c/c-parser.c:1534 0x8beced c_parse_file() /src/gcc/git-svn/gcc/c/c-parser.c:19854 0x94ea72 c_common_parse_file() /src/gcc/git-svn/gcc/c-family/c-opts.c:1156 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions.