public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/98571] New: ICE in handle_argspec_attribute, at c-family/c-attribs.c:3542
@ 2021-01-06 17:26 acoplan at gcc dot gnu.org
  2021-01-06 17:31 ` [Bug c/98571] " msebor at gcc dot gnu.org
  2021-06-17 20:36 ` msebor at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: acoplan at gcc dot gnu.org @ 2021-01-06 17:26 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 98571
           Summary: ICE in handle_argspec_attribute, at
                    c-family/c-attribs.c:3542
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: acoplan at gcc dot gnu.org
  Target Milestone: ---

Here is a (presumably low-priority, uninteresting) error-recovery ICE:

$ cat test.c
int f(int a[.5]);
$ aarch64-elf-gcc -c test.c
test.c:1:11: error: size of array 'a' has non-integer type
    1 | int f(int a[.5]);
      |           ^
test.c:1:1: internal compiler error: in handle_argspec_attribute, at
c-family/c-attribs.c:3542
    1 | int f(int a[.5]);
      | ^~~
0x7f2104 handle_argspec_attribute
        /home/alecop01/toolchain/src/gcc/gcc/c-family/c-attribs.c:3542
0x6bf2b4 decl_attributes(tree_node**, tree_node*, int, tree_node*)
        /home/alecop01/toolchain/src/gcc/gcc/attribs.c:724
0x6e5df1 push_parm_decl(c_parm const*, tree_node**)
        /home/alecop01/toolchain/src/gcc/gcc/c/c-decl.c:5873
0x743ecb c_parser_parms_list_declarator
        /home/alecop01/toolchain/src/gcc/gcc/c/c-parser.c:4291
0x744021 c_parser_parms_declarator
        /home/alecop01/toolchain/src/gcc/gcc/c/c-parser.c:4217
0x73ccfb c_parser_direct_declarator_inner
        /home/alecop01/toolchain/src/gcc/gcc/c/c-parser.c:4130
0x73cfab c_parser_direct_declarator
        /home/alecop01/toolchain/src/gcc/gcc/c/c-parser.c:3947
0x73cfab c_parser_declarator(c_parser*, bool, c_dtr_syn, bool*)
        /home/alecop01/toolchain/src/gcc/gcc/c/c-parser.c:3888
0x758e00 c_parser_declaration_or_fndef
        /home/alecop01/toolchain/src/gcc/gcc/c/c-parser.c:2148
0x762893 c_parser_external_declaration
        /home/alecop01/toolchain/src/gcc/gcc/c/c-parser.c:1777
0x7631f6 c_parser_translation_unit
        /home/alecop01/toolchain/src/gcc/gcc/c/c-parser.c:1650
0x7631f6 c_parse_file()
        /home/alecop01/toolchain/src/gcc/gcc/c/c-parser.c:21935
0x7d51f4 c_common_parse_file()
        /home/alecop01/toolchain/src/gcc/gcc/c-family/c-opts.c:1211
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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c/98571] ICE in handle_argspec_attribute, at c-family/c-attribs.c:3542
  2021-01-06 17:26 [Bug c/98571] New: ICE in handle_argspec_attribute, at c-family/c-attribs.c:3542 acoplan at gcc dot gnu.org
@ 2021-01-06 17:31 ` msebor at gcc dot gnu.org
  2021-06-17 20:36 ` msebor at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: msebor at gcc dot gnu.org @ 2021-01-06 17:31 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
     Ever confirmed|0                           |1
                 CC|                            |msebor at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |msebor at gcc dot gnu.org
   Last reconfirmed|                            |2021-01-06

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed.  It was almost certainly introduced in
g:6450f07388f9fe575a489c9309c36012b17b88b0.  Let me take care of it.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c/98571] ICE in handle_argspec_attribute, at c-family/c-attribs.c:3542
  2021-01-06 17:26 [Bug c/98571] New: ICE in handle_argspec_attribute, at c-family/c-attribs.c:3542 acoplan at gcc dot gnu.org
  2021-01-06 17:31 ` [Bug c/98571] " msebor at gcc dot gnu.org
@ 2021-06-17 20:36 ` msebor at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: msebor at gcc dot gnu.org @ 2021-06-17 20:36 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |11.2
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED

--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
Fixed in r12-774 (AKA PR c/100550).

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-06-17 20:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-06 17:26 [Bug c/98571] New: ICE in handle_argspec_attribute, at c-family/c-attribs.c:3542 acoplan at gcc dot gnu.org
2021-01-06 17:31 ` [Bug c/98571] " msebor at gcc dot gnu.org
2021-06-17 20:36 ` msebor at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).