public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/106207] New: [11/12/13 Regression] ICE in apply_fixit, at edit-context.cc:769
@ 2022-07-05 18:47 gscfq@t-online.de
2022-07-05 18:59 ` [Bug c++/106207] " mpolacek at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: gscfq@t-online.de @ 2022-07-05 18:47 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106207
Bug ID: 106207
Summary: [11/12/13 Regression] ICE in apply_fixit, at
edit-context.cc:769
Product: gcc
Version: 13.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: gscfq@t-online.de
Target Milestone: ---
Started with r11 between 20201018 and 20201108,
and file gcc.dg/tree-ssa/pr77644.c :
$ g++-13-20220703 -c pr77644.c -ftrack-macro-expansion=0
-fdiagnostics-generate-patch
pr77644.c: In function 'int f_f1(float, float)':
pr77644.c:22:1: warning: empty parentheses were disambiguated as a function
declaration [-Wvexing-parse]
22 | GEN_FOO(float, f)
| ^~~~~~~
pr77644.c:22:1: note: remove parentheses to default-initialize a variable
22 | GEN_FOO(float, f)
| ^~~~~~~
| -------
pr77644.c:22:1: note: or replace parentheses with braces to value-initialize a
variable
pr77644.c: In function 'int f_f2(float, float)':
pr77644.c:22:1: warning: empty parentheses were disambiguated as a function
declaration [-Wvexing-parse]
pr77644.c:22:1: note: remove parentheses to default-initialize a variable
22 | GEN_FOO(float, f)
| ^~~~~~~
| -------
pr77644.c:22:1: internal compiler error: in apply_fixit, at edit-context.cc:769
0x1b6c4f0 edited_line::apply_fixit(int, int, char const*, int)
../../gcc/edit-context.cc:769
0x1b6d306 edit_context::add_fixits(rich_location*)
../../gcc/edit-context.cc:232
0x1b60344 diagnostic_report_diagnostic(diagnostic_context*, diagnostic_info*)
../../gcc/diagnostic.cc:1580
0x1b6069a diagnostic_impl
../../gcc/diagnostic.cc:1712
0x1b61f89 inform(rich_location*, char const*, ...)
../../gcc/diagnostic.cc:1804
0x7ddf27 warn_about_ambiguous_parse
../../gcc/cp/parser.cc:22338
0x81e50a cp_parser_init_declarator
../../gcc/cp/parser.cc:22618
0x7fbb82 cp_parser_simple_declaration
../../gcc/cp/parser.cc:15336
0x7fd429 cp_parser_declaration_statement
../../gcc/cp/parser.cc:14417
0x7fda0b cp_parser_statement
../../gcc/cp/parser.cc:12494
0x7fe9d4 cp_parser_statement_seq_opt
../../gcc/cp/parser.cc:12906
0x7fea8f cp_parser_compound_statement
../../gcc/cp/parser.cc:12858
0x81d5e8 cp_parser_function_body
../../gcc/cp/parser.cc:25205
0x81d5e8 cp_parser_ctor_initializer_opt_and_function_body
../../gcc/cp/parser.cc:25256
0x81daa6 cp_parser_function_definition_after_declarator
../../gcc/cp/parser.cc:31404
0x81ec29 cp_parser_function_definition_from_specifiers_and_declarator
../../gcc/cp/parser.cc:31321
0x81ec29 cp_parser_init_declarator
../../gcc/cp/parser.cc:22658
0x7fbb82 cp_parser_simple_declaration
../../gcc/cp/parser.cc:15336
0x824958 cp_parser_declaration
../../gcc/cp/parser.cc:15022
0x825232 cp_parser_translation_unit
../../gcc/cp/parser.cc:5018
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/106207] [11/12/13 Regression] ICE in apply_fixit, at edit-context.cc:769
2022-07-05 18:47 [Bug c/106207] New: [11/12/13 Regression] ICE in apply_fixit, at edit-context.cc:769 gscfq@t-online.de
@ 2022-07-05 18:59 ` mpolacek at gcc dot gnu.org
2022-08-09 19:59 ` mpolacek at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2022-07-05 18:59 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106207
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org
Component|c |c++
Target Milestone|--- |11.4
Ever confirmed|0 |1
Last reconfirmed| |2022-07-05
CC| |mpolacek at gcc dot gnu.org
Priority|P3 |P2
Status|UNCONFIRMED |ASSIGNED
--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Started with my r11-4756-g5b2003105b35f8. Probably a latent issue though.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/106207] [11/12/13 Regression] ICE in apply_fixit, at edit-context.cc:769
2022-07-05 18:47 [Bug c/106207] New: [11/12/13 Regression] ICE in apply_fixit, at edit-context.cc:769 gscfq@t-online.de
2022-07-05 18:59 ` [Bug c++/106207] " mpolacek at gcc dot gnu.org
@ 2022-08-09 19:59 ` mpolacek at gcc dot gnu.org
2023-05-29 10:07 ` [Bug c++/106207] [11/12/13/14 " jakub at gcc dot gnu.org
2024-03-04 16:03 ` mpolacek at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2022-08-09 19:59 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106207
--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Reduced:
#define FOO(no) \
void f_##no() \
{ \
int gen_##no(); \
}
#define GEN_FOO \
FOO(f##1) \
FOO(f##2)
GEN_FOO
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/106207] [11/12/13/14 Regression] ICE in apply_fixit, at edit-context.cc:769
2022-07-05 18:47 [Bug c/106207] New: [11/12/13 Regression] ICE in apply_fixit, at edit-context.cc:769 gscfq@t-online.de
2022-07-05 18:59 ` [Bug c++/106207] " mpolacek at gcc dot gnu.org
2022-08-09 19:59 ` mpolacek at gcc dot gnu.org
@ 2023-05-29 10:07 ` jakub at gcc dot gnu.org
2024-03-04 16:03 ` mpolacek at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2023-05-29 10:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106207
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|11.4 |11.5
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 11.4 is being released, retargeting bugs to GCC 11.5.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/106207] [11/12/13/14 Regression] ICE in apply_fixit, at edit-context.cc:769
2022-07-05 18:47 [Bug c/106207] New: [11/12/13 Regression] ICE in apply_fixit, at edit-context.cc:769 gscfq@t-online.de
` (2 preceding siblings ...)
2023-05-29 10:07 ` [Bug c++/106207] [11/12/13/14 " jakub at gcc dot gnu.org
@ 2024-03-04 16:03 ` mpolacek at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2024-03-04 16:03 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106207
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |NEW
Assignee|mpolacek at gcc dot gnu.org |unassigned at gcc dot gnu.org
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-03-04 16:03 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-05 18:47 [Bug c/106207] New: [11/12/13 Regression] ICE in apply_fixit, at edit-context.cc:769 gscfq@t-online.de
2022-07-05 18:59 ` [Bug c++/106207] " mpolacek at gcc dot gnu.org
2022-08-09 19:59 ` mpolacek at gcc dot gnu.org
2023-05-29 10:07 ` [Bug c++/106207] [11/12/13/14 " jakub at gcc dot gnu.org
2024-03-04 16:03 ` mpolacek 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).