public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/98363] New: C++ 20 module ICE for fast_io library
@ 2020-12-17 23:06 unlvsur at live dot com
  2020-12-17 23:07 ` [Bug c++/98363] " unlvsur at live dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: unlvsur at live dot com @ 2020-12-17 23:06 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 98363
           Summary: C++ 20 module ICE for fast_io library
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: unlvsur at live dot com
  Target Milestone: ---

g++ -c hello.cc -Ofast -std=c++20 -s -fmodules-ts -flto

hello.cc
module;
#include<fast_io.h>
export module hello;
export inline void greeter (std::string_view name) noexcept
{
        print(name);
}


cqwrteur@Home-Server:~/myhome/test_module$ g++ -c hello.cc -Ofast -std=c++20 -s
-fmodules-ts -flto
hello.cc:3:8: internal compiler error: Segmentation fault
    3 | export module hello;
      |        ^~~~~~
0x10b2b4f crash_signal
        ../../gcc/gcc/toplev.c:327
0x9fe347 has_definition
        ../../gcc/gcc/cp/module.cc:11361
0xa104a7 depset::hash::make_dependency(tree_node*, depset::entity_kind)
        ../../gcc/gcc/cp/module.cc:12531
0xa10b84 depset::hash::add_dependency(tree_node*, depset::entity_kind)
        ../../gcc/gcc/cp/module.cc:12669
0xa17bda trees_out::decl_node(tree_node*, walk_kind)
        ../../gcc/gcc/cp/module.cc:8569
0xa18342 trees_out::tree_node(tree_node*)
        ../../gcc/gcc/cp/module.cc:9132
0xa1ac96 trees_out::tpl_parms_fini(tree_node*, unsigned int)
        ../../gcc/gcc/cp/module.cc:9888
0xa16603 trees_out::decl_value(tree_node*, depset*)
        ../../gcc/gcc/cp/module.cc:7742
0xa1e16b depset::hash::find_dependencies()
        ../../gcc/gcc/cp/module.cc:13181
0xa1e7c4 module_state::write(elf_out*, cpp_reader*)
        ../../gcc/gcc/cp/module.cc:17550
0xa1fa55 finish_module_processing(cpp_reader*)
        ../../gcc/gcc/cp/module.cc:19728
0x9b41eb c_parse_final_cleanups()
        ../../gcc/gcc/cp/decl2.c:5170
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.

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

end of thread, other threads:[~2024-01-08 17:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-17 23:06 [Bug c++/98363] New: C++ 20 module ICE for fast_io library unlvsur at live dot com
2020-12-17 23:07 ` [Bug c++/98363] " unlvsur at live dot com
2020-12-18  9:01 ` marxin at gcc dot gnu.org
2020-12-18  9:52 ` marxin at gcc dot gnu.org
2020-12-18 12:45 ` nathan at gcc dot gnu.org
2020-12-18 15:04 ` unlvsur at live dot com
2020-12-19  2:59 ` unlvsur at live dot com
2024-01-08 17:39 ` ppalka at gcc dot gnu.org
2024-01-08 17:40 ` ppalka 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).