http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55570
Marek Polacek <mpolacek at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2012-12-03 CC| |mpolacek at gcc dot gnu.org Ever Confirmed|0 |1 --- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> 2012-12-03 08:57:59 UTC --- Confirmed. Reproduced with trunk: pr55570.c:1:1: internal compiler error: Segmentation fault char array[16] __attribute__((aligned (SOME_NOT_DEFINED_MACRO))); ^ 0x8dc29f crash_signal /home/marek/src/gcc/gcc/toplev.c:334 0x54aa54 check_user_alignment(tree_node const*, bool) /home/marek/src/gcc/gcc/c-family/c-common.c:7264 0x56bb8b handle_aligned_attribute /home/marek/src/gcc/gcc/c-family/c-common.c:7391 0x4de269 decl_attributes(tree_node**, tree_node*, int) /home/marek/src/gcc/gcc/attribs.c:547 0x4f6d58 start_decl(c_declarator*, c_declspecs*, bool, tree_node*) /home/marek/src/gcc/gcc/c/c-decl.c:4113 0x532954 c_parser_declaration_or_fndef /home/marek/src/gcc/gcc/c/c-parser.c:1664 0x53716d c_parser_external_declaration /home/marek/src/gcc/gcc/c/c-parser.c:1363 0x537b97 c_parser_translation_unit /home/marek/src/gcc/gcc/c/c-parser.c:1251 0x537b97 c_parse_file() /home/marek/src/gcc/gcc/c/c-parser.c:10889 0x57c0f4 c_common_parse_file() /home/marek/src/gcc/gcc/c-family/c-opts.c:1023 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions. With 4.6 we did: pr55570.c:1:1: error: requested alignment is not a constant which was better than just segfaulting.