public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/103328] New: IC in remap_gimple_stmt, at tree-inline.c:1921
@ 2021-11-19  9:56 avi@cloudius-systems.com
  2021-11-19 10:41 ` [Bug c++/103328] ICE " rguenth at gcc dot gnu.org
                   ` (27 more replies)
  0 siblings, 28 replies; 29+ messages in thread
From: avi@cloudius-systems.com @ 2021-11-19  9:56 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 103328
           Summary: IC in remap_gimple_stmt, at tree-inline.c:1921
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: avi@cloudius-systems.com
  Target Milestone: ---

Created attachment 51836
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51836&action=edit
reduced reproducer. Thanks cvise.

The attached test case, compiled with 


   g++  -O2  --std=gnu++20   -c -o out.o raft-server.i


produces

during GIMPLE pass: einline
raft-server.i: In static member function ‘static seastar::futurize<T>::type
seastar::futurize<T>::invoke(Func&&, FuncArgs&& ...) [with Func = const
std::server_impl::send_message<std::variant<{anonymous}::append_request>
>({anonymous}::server_id,
std::variant<{anonymous}::append_request>)::<lambda(auto:1)>::<lambda()>&;
FuncArgs = {}; T = const
std::server_impl::send_message<std::variant<{anonymous}::append_request>
>({anonymous}::server_id,
std::variant<{anonymous}::append_request>)::<lambda(auto:1)>::<lambda()>&]’:
raft-server.i:405:7: internal compiler error: in remap_gimple_stmt, at
tree-inline.c:1921
  405 |   func();
      |   ~~~~^~
0xd11c4f remap_gimple_stmt
        ../../gcc/gcc/tree-inline.c:1921
0xd14357 copy_bb
        ../../gcc/gcc/tree-inline.c:2022
0xd15744 copy_cfg_body
        ../../gcc/gcc/tree-inline.c:3054
0xd15744 copy_body
        ../../gcc/gcc/tree-inline.c:3309
0xd189af expand_call_inline
        ../../gcc/gcc/tree-inline.c:5129
0xd19f59 gimple_expand_calls_inline
        ../../gcc/gcc/tree-inline.c:5319
0xd19f59 optimize_inline_calls(tree_node*)
        ../../gcc/gcc/tree-inline.c:5492
0x15ee69e early_inliner(function*)
        ../../gcc/gcc/ipa-inline.c:3007
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.


The test case is invalid code now, but pre-reduction was valid (and accepted by
clang) and produced the same error.

Tested with current gcc releases/gcc-11 branch HEAD
(f62039efd679ffa8719732c71535457eb3ec61e0) + one patch backported
(daa9c6b015a33fa98af0ee7cd6919120248ab5f9).

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

end of thread, other threads:[~2022-04-07 14:42 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-19  9:56 [Bug c++/103328] New: IC in remap_gimple_stmt, at tree-inline.c:1921 avi@cloudius-systems.com
2021-11-19 10:41 ` [Bug c++/103328] ICE " rguenth at gcc dot gnu.org
2021-11-19 10:41 ` rguenth at gcc dot gnu.org
2021-11-19 11:07 ` [Bug c++/103328] [11/12 Regression] ICE in remap_gimple_stmt, at tree-inline.c:1921 since r11-7419-g0f161cc8494cf728 marxin at gcc dot gnu.org
2021-11-19 11:26 ` jakub at gcc dot gnu.org
2021-11-19 11:57 ` avi@cloudius-systems.com
2021-11-19 12:03 ` avi@cloudius-systems.com
2021-11-19 12:07 ` jakub at gcc dot gnu.org
2021-11-19 12:10 ` avi@cloudius-systems.com
2021-11-19 12:11 ` avi@cloudius-systems.com
2021-11-19 12:20 ` avi@cloudius-systems.com
2021-11-19 12:28 ` rguenth at gcc dot gnu.org
2021-11-19 12:46 ` rguenth at gcc dot gnu.org
2021-11-19 12:48 ` rguenth at gcc dot gnu.org
2021-11-19 13:42 ` rguenth at gcc dot gnu.org
2021-11-19 13:59 ` iains at gcc dot gnu.org
2021-11-19 14:05 ` rguenth at gcc dot gnu.org
2021-11-20 11:15 ` avi@cloudius-systems.com
2022-01-17 12:55 ` rguenth at gcc dot gnu.org
2022-02-26 17:17 ` piotr.grabowski at scylladb dot com
2022-03-11  2:14 ` gcc at bmevers dot de
2022-03-11 16:40 ` gcc at bmevers dot de
2022-03-15 15:29 ` avi at scylladb dot com
2022-03-22 14:48 ` [Bug c++/103328] [11/12 Regression] ICE in remap_gimple_stmt with coroutines " avi at scylladb dot com
2022-04-03 10:28 ` cvs-commit at gcc dot gnu.org
2022-04-04 15:05 ` avi at scylladb dot com
2022-04-07 12:04 ` [Bug c++/103328] [11 " cvs-commit at gcc dot gnu.org
2022-04-07 12:06 ` rguenth at gcc dot gnu.org
2022-04-07 14:42 ` avi at scylladb dot com

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).