public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "boris at kolpackov dot net" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/98719] New: [modules] translating importable standard headers causes various ICEs Date: Mon, 18 Jan 2021 08:31:54 +0000 [thread overview] Message-ID: <bug-98719-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98719 Bug ID: 98719 Summary: [modules] translating importable standard headers causes various ICEs 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 49989 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49989&action=edit <string> build transcript An attempt to enable include translation for all the importable standard headers (http://eel.is/c++draft/library#headers-4) causes various internal compiler errors. Here are a few examples: Trying to translate from a top-level <string> include: c++ ../../gcc-install/include/c++/11.0.0/h{type_traits} c++ ../../gcc-install/include/c++/11.0.0/h{concepts} c++ ../../gcc-install/include/c++/11.0.0/h{compare} In file included from /home/boris/work/build2/tests/modules/gcc2/gcc-install/include/c++/11.0.0/bits/stl_iterator_base_types.h:71, from /home/boris/work/build2/tests/modules/gcc2/gcc-install/include/c++/11.0.0/bits/stl_algobase.h:65, from /home/boris/work/build2/tests/modules/gcc2/gcc-install/include/c++/11.0.0/bits/char_traits.h:39, from /home/boris/work/build2/tests/modules/gcc2/gcc-install/include/c++/11.0.0/string:40: /home/boris/work/build2/tests/modules/gcc2/gcc-install/include/c++/11.0.0/bits/iterator_concepts.h:34: internal compiler error: in set_filename, at cp/module.cc:19081 34 | | 0xc69be8 module_state::set_filename(Cody::Packet const&) ../../gcc/gcc/cp/module.cc:19081 0xc69e4f maybe_translate_include ../../gcc/gcc/cp/module.cc:19124 0x2bfcda7 _cpp_stack_file ../../gcc/libcpp/files.c:912 0x2bfd420 _cpp_stack_include ../../gcc/libcpp/files.c:1104 0x2bf15ea do_include_common ../../gcc/libcpp/directives.c:853 0x2bf1642 do_include ../../gcc/libcpp/directives.c:865 0x2bf0bc0 _cpp_handle_directive ../../gcc/libcpp/directives.c:541 0x2c094d1 cpp_directive_only_process(cpp_reader*, void*, void (*)(cpp_reader*, CPP_DO_task, void*, ...)) ../../gcc/libcpp/lex.c:4393 0xf11c8e scan_translation_unit_directives_only ../../gcc/gcc/c-family/c-ppoutput.c:402 0xf11158 preprocess_file(cpp_reader*) ../../gcc/gcc/c-family/c-ppoutput.c:100 0xf0b6e4 c_common_init() ../../gcc/gcc/c-family/c-opts.c:1188 0xbe4d7b cxx_init() ../../gcc/gcc/cp/lex.c:332 0x1805e47 lang_dependent_init ../../gcc/gcc/toplev.c:1881 0x18066f9 do_compile ../../gcc/gcc/toplev.c:2178 Trying to translate from a top-level <iostream> include: c++ ../../gcc-install/include/c++/11.0.0/h{iosfwd} c++ ../../gcc-install/include/c++/11.0.0/h{typeinfo} c++ ../../gcc-install/include/c++/11.0.0/h{new} c++ ../../gcc-install/include/c++/11.0.0/h{type_traits} c++ ../../gcc-install/include/c++/11.0.0/h{exception} /home/boris/work/build2/tests/modules/gcc2/gcc-install/include/c++/11.0.0/exception: internal compiler error: in write_cluster, at cp/module.cc:14563 0xc5b52c module_state::write_cluster(elf_out*, depset**, unsigned int, depset::hash&, unsigned int*, unsigned int*) ../../gcc/gcc/cp/module.cc:14562 0xc65808 module_state::write(elf_out*, cpp_reader*) ../../gcc/gcc/cp/module.cc:17691 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 The build transcripts for these two cases are attached.
next reply other threads:[~2021-01-18 8:31 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-01-18 8:31 boris at kolpackov dot net [this message] 2021-01-18 8:32 ` [Bug c++/98719] " boris at kolpackov dot net 2021-02-16 15:00 ` nathan at gcc dot gnu.org 2022-09-16 9:34 ` redi at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-98719-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).