public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "gscfq@t-online.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/97957] ICE in init_dynamic_diag_info, at c-family/c-format.c:5024
Date: Mon, 23 Nov 2020 16:42:21 +0000	[thread overview]
Message-ID: <bug-97957-4-foFk00NVaD@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-97957-4@http.gcc.gnu.org/bugzilla/>

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

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

Another similar situation :


$ cat z2.c
typedef long __gcc_host_wide_int__;
typedef long __gcc_host_wide_int__;
__attribute__ ((__format__ (__asm_fprintf__, 1, 2)))
void f () {}


$ gcc-11-20201122 -c z2.c
z2.c:4:1: internal compiler error: in init_dynamic_asm_fprintf_info, at
c-family/c-format.c:4829
    4 | void f () {}
      | ^~~~
0x6d1b33 init_dynamic_asm_fprintf_info
        ../../gcc/c-family/c-format.c:4829
0x6d1b33 handle_format_attribute(tree_node**, tree_node*, tree_node*, int,
bool*)
        ../../gcc/c-family/c-format.c:5240
0x62a101 decl_attributes(tree_node**, tree_node*, int, tree_node*)
        ../../gcc/attribs.c:724
0x641eef start_function(c_declspecs*, c_declarator*, tree_node*)
        ../../gcc/c/c-decl.c:9410
0x689236 c_parser_declaration_or_fndef
        ../../gcc/c/c-parser.c:2444
0x690a47 c_parser_external_declaration
        ../../gcc/c/c-parser.c:1777
0x691569 c_parser_translation_unit
        ../../gcc/c/c-parser.c:1650
0x691569 c_parse_file()
        ../../gcc/c/c-parser.c:21882
0x6e0772 c_common_parse_file()
        ../../gcc/c-family/c-opts.c:1198

  reply	other threads:[~2020-11-23 16:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-23 16:41 [Bug c/97957] New: " gscfq@t-online.de
2020-11-23 16:42 ` gscfq@t-online.de [this message]
2020-11-23 18:20 ` [Bug c/97957] " marxin at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-97957-4-foFk00NVaD@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).