public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/104777] New: gcc crashes while compiling a custom coroutine library sample
@ 2022-03-04  7:45 janezz55 at gmail dot com
  2022-03-04 12:54 ` [Bug c++/104777] " marxin at gcc dot gnu.org
                   ` (19 more replies)
  0 siblings, 20 replies; 21+ messages in thread
From: janezz55 at gmail dot com @ 2022-03-04  7:45 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 104777
           Summary: gcc crashes while compiling a custom coroutine library
                    sample
           Product: gcc
           Version: 11.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: janezz55 at gmail dot com
  Target Milestone: ---

The code sample is here https://github.com/user1095108/cr. gcc crashes only if
the optimization level is higher than 2.

g++ -I.. -Ofast -no-pie -std=c++20 loop.cpp -o l

clang compiles everything without issue.

./lduring RTL pass: sched2
In file included from /usr/include/c++/11.2.0/functional:59,
                 from /usr/include/c++/11.2.0/pstl/glue_algorithm_defs.h:13,
                 from /usr/include/c++/11.2.0/algorithm:74,
                 from loop.hpp:5,
                 from loop.cpp:3:
/usr/include/c++/11.2.0/bits/std_function.h: In static member function 'static
_Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const
std::_Any_data&, _ArgTypes&& ...) [with _Res = void; _Functor =
main()::<lambda()>; _ArgTypes = {}]':
/usr/include/c++/11.2.0/bits/std_function.h:293:7: internal compiler error: in
move_insn, at haifa-sched.c:5471
  293 |       }
      |       ^
0xe4c988 internal_error(char const*, ...)
        ???:0
0xe42d02 fancy_abort(char const*, int, char const*)
        ???:0
0x13ee792 schedule_block(basic_block_def**, void*)
        ???:0
0x13da4f2 schedule_insns()
        ???:0
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://bugs.archlinux.org/> for instructions.

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

end of thread, other threads:[~2022-06-13 16:30 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-04  7:45 [Bug c++/104777] New: gcc crashes while compiling a custom coroutine library sample janezz55 at gmail dot com
2022-03-04 12:54 ` [Bug c++/104777] " marxin at gcc dot gnu.org
2022-03-04 15:44 ` [Bug c++/104777] gcc crashes while compiling a custom coroutine library sample since r10-5137-g43aae289866f5ea5 marxin at gcc dot gnu.org
2022-03-04 15:51 ` mpolacek at gcc dot gnu.org
2022-03-05 21:44 ` [Bug c++/104777] [10/11/12 Regression] " pinskia at gcc dot gnu.org
2022-03-05 21:45 ` [Bug rtl-optimization/104777] " pinskia at gcc dot gnu.org
2022-03-05 21:55 ` [Bug rtl-optimization/104777] [9/10/11/12 Regression] gcc crashes while compiling a custom coroutine library sample pinskia at gcc dot gnu.org
2022-03-05 21:55 ` pinskia at gcc dot gnu.org
2022-03-05 22:07 ` pinskia at gcc dot gnu.org
2022-03-08  0:07 ` mpolacek at gcc dot gnu.org
2022-03-08 19:00 ` cvs-commit at gcc dot gnu.org
2022-03-08 19:01 ` [Bug rtl-optimization/104777] [9/10/11 " mpolacek at gcc dot gnu.org
2022-03-10 18:33 ` cvs-commit at gcc dot gnu.org
2022-03-10 18:34 ` [Bug rtl-optimization/104777] [9/10 " mpolacek at gcc dot gnu.org
2022-06-13 10:04 ` ubizjak at gmail dot com
2022-06-13 12:00 ` ubizjak at gmail dot com
2022-06-13 12:19 ` stsp at users dot sourceforge.net
2022-06-13 13:26 ` jakub at gcc dot gnu.org
2022-06-13 14:39 ` mpolacek at gcc dot gnu.org
2022-06-13 16:29 ` cvs-commit at gcc dot gnu.org
2022-06-13 16:30 ` 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).