https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97879

G. Steinmetz <gs...@t-online.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code

--- Comment #1 from G. Steinmetz <gs...@t-online.de> ---


These cases are related, but originate in r10 (20191124) :


$ cat z4.c
__attribute__ ((__access__(1))) void f ();


$ cat z5.c
__attribute__ ((access(1, 2))) void f ();


$ cat z6.c
__attribute__ ((access(2., 3.))) void f ();


$ gcc-11-20201115 -c z4.c
z4.c:1:1: internal compiler error: Segmentation fault
    1 | __attribute__ ((__access__(1))) void f ();
      | ^~~~~~~~~~~~~
0xb3b52f crash_signal
        ../../gcc/toplev.c:330
0x6f7ade handle_access_attribute
        ../../gcc/c-family/c-attribs.c:4369
0x6299f1 decl_attributes(tree_node**, tree_node*, int, tree_node*)
        ../../gcc/attribs.c:724
0x641252 start_decl(c_declarator*, c_declspecs*, bool, tree_node*, unsigned
int*)
        ../../gcc/c/c-decl.c:5188
0x688366 c_parser_declaration_or_fndef
        ../../gcc/c/c-parser.c:2306
0x690297 c_parser_external_declaration
        ../../gcc/c/c-parser.c:1777
0x690db9 c_parser_translation_unit
        ../../gcc/c/c-parser.c:1650
0x690db9 c_parse_file()
        ../../gcc/c/c-parser.c:21882
0x6dfb82 c_common_parse_file()
        ../../gcc/c-family/c-opts.c:1196

Reply via email to