public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/98718] New: [modules] use of partitions causes ICE in write_macro_maps
@ 2021-01-18  7:37 boris at kolpackov dot net
  2021-01-18  8:43 ` [Bug c++/98718] " boris at kolpackov dot net
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: boris at kolpackov dot net @ 2021-01-18  7:37 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 98718
           Summary: [modules] use of partitions causes ICE in
                    write_macro_maps
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: boris at kolpackov dot net
  Target Milestone: ---

Created attachment 49988
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49988&action=edit
Reproducer

The attached set of translation units causes an internal compiler error:

hello.mxx:5:9: internal compiler error: in write_macro_maps, at
cp/module.cc:16113
    5 | export module hello;
      |         ^~~~~~
0xc60a67 module_state::write_macro_maps(elf_out*, location_map_info&,
module_state_config*, unsigned int*)
        ../../gcc/gcc/cp/module.cc:16113
0xc659f1 module_state::write(elf_out*, cpp_reader*)
        ../../gcc/gcc/cp/module.cc:17727
0xc6bbfd finish_module_processing(cpp_reader*)
        ../../gcc/gcc/cp/module.cc:19747
0xb8a7a1 c_parse_final_cleanups()
        ../../gcc/gcc/cp/decl2.c:5178
0xf0b805 c_common_parse_file()
        ../../gcc/gcc/c-family/c-opts.c:1233

If I replace std::string with const char* and get rid of the <string>
inclusion, then the ICE disappears. The build transcript is included in the
attached archive.

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

end of thread, other threads:[~2021-03-05 18:19 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-18  7:37 [Bug c++/98718] New: [modules] use of partitions causes ICE in write_macro_maps boris at kolpackov dot net
2021-01-18  8:43 ` [Bug c++/98718] " boris at kolpackov dot net
2021-02-22 15:40 ` nathan at gcc dot gnu.org
2021-02-23 18:26 ` nathan at gcc dot gnu.org
2021-02-24 20:46 ` cvs-commit at gcc dot gnu.org
2021-02-24 20:47 ` nathan at gcc dot gnu.org
2021-02-26 12:49 ` nathan at gcc dot gnu.org
2021-02-26 12:49 ` nathan at gcc dot gnu.org
2021-03-04  7:08 ` boris at kolpackov dot net
2021-03-05 18:19 ` nathan 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).