public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/97957] New: ICE in init_dynamic_diag_info, at c-family/c-format.c:5024
@ 2020-11-23 16:41 gscfq@t-online.de
2020-11-23 16:42 ` [Bug c/97957] " gscfq@t-online.de
2020-11-23 18:20 ` marxin at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: gscfq@t-online.de @ 2020-11-23 16:41 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97957
Bug ID: 97957
Summary: ICE in init_dynamic_diag_info, at
c-family/c-format.c:5024
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: gscfq@t-online.de
Target Milestone: ---
A doubled line affects versions down to at least r5 :
$ cat z1.c
typedef long __gcc_host_wide_int__;
typedef long __gcc_host_wide_int__;
__attribute__ ((__format__ (__gcc_diag__, 1, 2)))
void f () {}
$ gcc-11-20201122 -c z1.c
z1.c:4:1: internal compiler error: in init_dynamic_diag_info, at
c-family/c-format.c:5024
4 | void f () {}
| ^~~~
0x6d1b97 init_dynamic_diag_info
../../gcc/c-family/c-format.c:5024
0x6d1b97 handle_format_attribute(tree_node**, tree_node*, tree_node*, int,
bool*)
../../gcc/c-family/c-format.c:5252
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c/97957] ICE in init_dynamic_diag_info, at c-family/c-format.c:5024
2020-11-23 16:41 [Bug c/97957] New: ICE in init_dynamic_diag_info, at c-family/c-format.c:5024 gscfq@t-online.de
@ 2020-11-23 16:42 ` gscfq@t-online.de
2020-11-23 18:20 ` marxin at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: gscfq@t-online.de @ 2020-11-23 16:42 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c/97957] ICE in init_dynamic_diag_info, at c-family/c-format.c:5024
2020-11-23 16:41 [Bug c/97957] New: ICE in init_dynamic_diag_info, at c-family/c-format.c:5024 gscfq@t-online.de
2020-11-23 16:42 ` [Bug c/97957] " gscfq@t-online.de
@ 2020-11-23 18:20 ` marxin at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-11-23 18:20 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97957
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2020-11-23
CC| |marxin at gcc dot gnu.org
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, at least as old as GCC 4.8.0.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-11-23 18:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-23 16:41 [Bug c/97957] New: ICE in init_dynamic_diag_info, at c-family/c-format.c:5024 gscfq@t-online.de
2020-11-23 16:42 ` [Bug c/97957] " gscfq@t-online.de
2020-11-23 18:20 ` marxin 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).