public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/101887] New: [9/10/11/12 Regression] ICE with invalid declaration of 'operator delete'
@ 2021-08-12 17:33 reichelt at gcc dot gnu.org
2021-08-12 20:45 ` [Bug c++/101887] " pinskia at gcc dot gnu.org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: reichelt at gcc dot gnu.org @ 2021-08-12 17:33 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101887
Bug ID: 101887
Summary: [9/10/11/12 Regression] ICE with invalid declaration
of 'operator delete'
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Keywords: error-recovery, ice-on-invalid-code
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: reichelt at gcc dot gnu.org
Target Milestone: ---
The following invalid code snippet triggers an ICE since GCC 4.9.0:
================================================
struct A
{
A();
auto operator delete(void*, __SIZE_TYPE__);
};
void foo()
{
new A;
}
================================================
bug.cc:4:3: error: non-static data member declared with placeholder 'auto'
4 | auto operator delete(void*, __SIZE_TYPE__);
| ^~~~
bug.cc: In function 'void foo()':
bug.cc:9:7: internal compiler error: tree check: expected function_type or
method_type, have error_mark in usual_deallocation_fn_p, at cp/call.c:6935
9 | new A;
| ^
0x85a540 tree_check_failed(tree_node const*, char const*, int, char const*,
...)
../../gcc/gcc/tree.c:8686
0x6544a6 tree_check2(tree_node*, char const*, int, char const*, tree_code,
tree_code)
../../gcc/gcc/tree.h:3392
0x6544a6 usual_deallocation_fn_p
../../gcc/gcc/cp/call.c:6935
0x9229e0 build_op_delete_call(tree_code, tree_node*, tree_node*, bool,
tree_node*, tree_node*, int)
../../gcc/gcc/cp/call.c:6926
0xa0c128 build_new_1
../../gcc/gcc/cp/init.c:3539
0xa0cf98 build_new(unsigned int, vec<tree_node*, va_gc, vl_embed>**,
tree_node*, tree_node*, vec<tree_node*, va_gc, vl_embed>**, int, int)
../../gcc/gcc/cp/init.c:3826
0xabf7d2 cp_parser_new_expression
../../gcc/gcc/cp/parser.c:9157
0xabfdff cp_parser_unary_expression
../../gcc/gcc/cp/parser.c:8745
0xa91a2a cp_parser_binary_expression
../../gcc/gcc/cp/parser.c:9893
0xa9233c cp_parser_assignment_expression
../../gcc/gcc/cp/parser.c:10197
0xa938b2 cp_parser_expression
../../gcc/gcc/cp/parser.c:10367
0xa96f58 cp_parser_expression_statement
../../gcc/gcc/cp/parser.c:12531
0xaa2dff cp_parser_statement
../../gcc/gcc/cp/parser.c:12327
0xaa3e9d cp_parser_statement_seq_opt
../../gcc/gcc/cp/parser.c:12679
0xaa3f78 cp_parser_compound_statement
../../gcc/gcc/cp/parser.c:12628
0xac35c0 cp_parser_function_body
../../gcc/gcc/cp/parser.c:24762
0xac35c0 cp_parser_ctor_initializer_opt_and_function_body
../../gcc/gcc/cp/parser.c:24813
0xac428a cp_parser_function_definition_after_declarator
../../gcc/gcc/cp/parser.c:30898
0xac56c4 cp_parser_function_definition_from_specifiers_and_declarator
../../gcc/gcc/cp/parser.c:30814
0xac56c4 cp_parser_init_declarator
../../gcc/gcc/cp/parser.c:22318
Please submit a full bug report, [etc.]
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/101887] [9/10/11/12 Regression] ICE with invalid declaration of 'operator delete'
2021-08-12 17:33 [Bug c++/101887] New: [9/10/11/12 Regression] ICE with invalid declaration of 'operator delete' reichelt at gcc dot gnu.org
@ 2021-08-12 20:45 ` pinskia at gcc dot gnu.org
2021-08-12 20:46 ` pinskia at gcc dot gnu.org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-12 20:45 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101887
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |9.5
Severity|normal |trivial
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/101887] [9/10/11/12 Regression] ICE with invalid declaration of 'operator delete'
2021-08-12 17:33 [Bug c++/101887] New: [9/10/11/12 Regression] ICE with invalid declaration of 'operator delete' reichelt at gcc dot gnu.org
2021-08-12 20:45 ` [Bug c++/101887] " pinskia at gcc dot gnu.org
@ 2021-08-12 20:46 ` pinskia at gcc dot gnu.org
2021-08-16 8:56 ` rguenth at gcc dot gnu.org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-12 20:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101887
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2021-08-12
Ever confirmed|0 |1
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Most likely introduced by r9-7073.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/101887] [9/10/11/12 Regression] ICE with invalid declaration of 'operator delete'
2021-08-12 17:33 [Bug c++/101887] New: [9/10/11/12 Regression] ICE with invalid declaration of 'operator delete' reichelt at gcc dot gnu.org
2021-08-12 20:45 ` [Bug c++/101887] " pinskia at gcc dot gnu.org
2021-08-12 20:46 ` pinskia at gcc dot gnu.org
@ 2021-08-16 8:56 ` rguenth at gcc dot gnu.org
2022-05-27 9:46 ` [Bug c++/101887] [10/11/12/13 " rguenth at gcc dot gnu.org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-08-16 8:56 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101887
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P4
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/101887] [10/11/12/13 Regression] ICE with invalid declaration of 'operator delete'
2021-08-12 17:33 [Bug c++/101887] New: [9/10/11/12 Regression] ICE with invalid declaration of 'operator delete' reichelt at gcc dot gnu.org
` (2 preceding siblings ...)
2021-08-16 8:56 ` rguenth at gcc dot gnu.org
@ 2022-05-27 9:46 ` rguenth at gcc dot gnu.org
2022-06-28 10:46 ` jakub at gcc dot gnu.org
2023-07-07 10:40 ` [Bug c++/101887] [11/12/13/14 " rguenth at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-05-27 9:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101887
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|9.5 |10.4
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 9 branch is being closed
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/101887] [10/11/12/13 Regression] ICE with invalid declaration of 'operator delete'
2021-08-12 17:33 [Bug c++/101887] New: [9/10/11/12 Regression] ICE with invalid declaration of 'operator delete' reichelt at gcc dot gnu.org
` (3 preceding siblings ...)
2022-05-27 9:46 ` [Bug c++/101887] [10/11/12/13 " rguenth at gcc dot gnu.org
@ 2022-06-28 10:46 ` jakub at gcc dot gnu.org
2023-07-07 10:40 ` [Bug c++/101887] [11/12/13/14 " rguenth at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-06-28 10:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101887
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|10.4 |10.5
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 10.4 is being released, retargeting bugs to GCC 10.5.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/101887] [11/12/13/14 Regression] ICE with invalid declaration of 'operator delete'
2021-08-12 17:33 [Bug c++/101887] New: [9/10/11/12 Regression] ICE with invalid declaration of 'operator delete' reichelt at gcc dot gnu.org
` (4 preceding siblings ...)
2022-06-28 10:46 ` jakub at gcc dot gnu.org
@ 2023-07-07 10:40 ` rguenth at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-07-07 10:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101887
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|10.5 |11.5
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 10 branch is being closed.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2023-07-07 10:40 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-12 17:33 [Bug c++/101887] New: [9/10/11/12 Regression] ICE with invalid declaration of 'operator delete' reichelt at gcc dot gnu.org
2021-08-12 20:45 ` [Bug c++/101887] " pinskia at gcc dot gnu.org
2021-08-12 20:46 ` pinskia at gcc dot gnu.org
2021-08-16 8:56 ` rguenth at gcc dot gnu.org
2022-05-27 9:46 ` [Bug c++/101887] [10/11/12/13 " rguenth at gcc dot gnu.org
2022-06-28 10:46 ` jakub at gcc dot gnu.org
2023-07-07 10:40 ` [Bug c++/101887] [11/12/13/14 " rguenth 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).