public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/98719] New: [modules] translating importable standard headers causes various ICEs
@ 2021-01-18 8:31 boris at kolpackov dot net
2021-01-18 8:32 ` [Bug c++/98719] " boris at kolpackov dot net
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: boris at kolpackov dot net @ 2021-01-18 8:31 UTC (permalink / raw)
To: gcc-bugs
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/98719] [modules] translating importable standard headers causes various ICEs
2021-01-18 8:31 [Bug c++/98719] New: [modules] translating importable standard headers causes various ICEs boris at kolpackov dot net
@ 2021-01-18 8:32 ` 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
2 siblings, 0 replies; 4+ messages in thread
From: boris at kolpackov dot net @ 2021-01-18 8:32 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98719
--- Comment #1 from Boris Kolpackov <boris at kolpackov dot net> ---
Created attachment 49991
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49991&action=edit
<iostream> build transcript
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/98719] [modules] translating importable standard headers causes various ICEs
2021-01-18 8:31 [Bug c++/98719] New: [modules] translating importable standard headers causes various ICEs boris at kolpackov dot net
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
2 siblings, 0 replies; 4+ messages in thread
From: nathan at gcc dot gnu.org @ 2021-02-16 15:00 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98719
Nathan Sidwell <nathan at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2021-02-16
Assignee|unassigned at gcc dot gnu.org |nathan at gcc dot gnu.org
Ever confirmed|0 |1
Status|UNCONFIRMED |SUSPENDED
--- Comment #2 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
We'll revisit this later
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/98719] [modules] translating importable standard headers causes various ICEs
2021-01-18 8:31 [Bug c++/98719] New: [modules] translating importable standard headers causes various ICEs boris at kolpackov dot net
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
2 siblings, 0 replies; 4+ messages in thread
From: redi at gcc dot gnu.org @ 2022-09-16 9:34 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98719
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|SUSPENDED |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Looks like the same issue as PR 99243
*** This bug has been marked as a duplicate of bug 99243 ***
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-09-16 9:34 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-18 8:31 [Bug c++/98719] New: [modules] translating importable standard headers causes various ICEs boris at kolpackov dot net
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
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).