public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/99879] New: [modules] ICE in open
@ 2021-04-02  2:08 alexander.lelyakin at googlemail dot com
  2021-04-08 14:51 ` [Bug c++/99879] " alexander.lelyakin at googlemail dot com
  2021-04-08 21:11 ` alexander.lelyakin at googlemail dot com
  0 siblings, 2 replies; 3+ messages in thread
From: alexander.lelyakin at googlemail dot com @ 2021-04-02  2:08 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 99879
           Summary: [modules] ICE in open
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: alexander.lelyakin at googlemail dot com
  Target Milestone: ---

/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header memory
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header climits
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header cmath
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header source_location
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header shared_mutex
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header set
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header bit
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header functional
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header queue
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header iomanip
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header syncstream
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header unordered_set
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header forward_list
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header semaphore
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header
condition_variable
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header cstring
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header istream
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header iostream
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header future
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header thread
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header typeinfo
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header latch
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header ratio
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header cerrno
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header ios
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header csignal
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header regex
----
In module imported at /usr/local/include/c++/11.0.1/regex:53:
/usr/local/include/c++/11.0.1/cstring: note: unable to represent further
imported source locations
/usr/local/include/c++/11.0.1/regex:53: internal compiler error: in open, at
cp/module.cc:13625
   53 | #include <cstring>
      | 
0x6de0f9 loc_spans::open(unsigned int)
        ../../gcc/gcc/cp/module.cc:13625
0xa61915 preprocess_module(module_state*, unsigned int, bool, bool, bool,
cpp_reader*)
        ../../gcc/gcc/cp/module.cc:19417
0xa2b82f module_token_filter::resume(int, int, tree_node*, unsigned int)
        ../../gcc/gcc/cp/lex.c:520
0xa2b82f module_token_lang(int, int, tree_node*, unsigned int, unsigned long)
        ../../gcc/gcc/cp/lex.c:557
0xadf873 cp_lexer_new_main
        ../../gcc/gcc/cp/parser.c:660
0xadf873 c_parse_file()
        ../../gcc/gcc/cp/parser.c:45253
0xc0480d c_common_parse_file()
        ../../gcc/gcc/c-family/c-opts.c:1218
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.
----
g++ (GCC) 11.0.1 20210401 (experimental)
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

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

* [Bug c++/99879] [modules] ICE in open
  2021-04-02  2:08 [Bug c++/99879] New: [modules] ICE in open alexander.lelyakin at googlemail dot com
@ 2021-04-08 14:51 ` alexander.lelyakin at googlemail dot com
  2021-04-08 21:11 ` alexander.lelyakin at googlemail dot com
  1 sibling, 0 replies; 3+ messages in thread
From: alexander.lelyakin at googlemail dot com @ 2021-04-08 14:51 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Alexander Lelyakin <alexander.lelyakin at googlemail dot com> ---
There is a shorter sequence:

/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header memory
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header cstdio
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header span
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header shared_mutex
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header cstdint
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header clocale
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header bitset
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header semaphore
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header exception
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header numbers
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header charconv
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header locale
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header string
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header ranges
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header cstring
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header regex
----
In module imported at /usr/local/include/c++/11.0.1/regex:53:
/usr/local/include/c++/11.0.1/cstring: note: unable to represent further
imported source locations
/usr/local/include/c++/11.0.1/regex:53: internal compiler error: in open, at
cp/module.cc:13628
   53 | #include <cstring>
      | 
0x6df11d loc_spans::open(unsigned int)
        ../../gcc/gcc/cp/module.cc:13628
0xa62db5 preprocess_module(module_state*, unsigned int, bool, bool, bool,
cpp_reader*)
        ../../gcc/gcc/cp/module.cc:19432
0xa2ccef module_token_filter::resume(int, int, tree_node*, unsigned int)
        ../../gcc/gcc/cp/lex.c:520
0xa2ccef module_token_lang(int, int, tree_node*, unsigned int, unsigned long)
        ../../gcc/gcc/cp/lex.c:557
0xae0d53 cp_lexer_new_main
        ../../gcc/gcc/cp/parser.c:660
0xae0d53 c_parse_file()
        ../../gcc/gcc/cp/parser.c:45264
0xc05d0d c_common_parse_file()
        ../../gcc/gcc/c-family/c-opts.c:1218
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.
----
g++ (GCC) 11.0.1 20210408 (experimental)
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

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

* [Bug c++/99879] [modules] ICE in open
  2021-04-02  2:08 [Bug c++/99879] New: [modules] ICE in open alexander.lelyakin at googlemail dot com
  2021-04-08 14:51 ` [Bug c++/99879] " alexander.lelyakin at googlemail dot com
@ 2021-04-08 21:11 ` alexander.lelyakin at googlemail dot com
  1 sibling, 0 replies; 3+ messages in thread
From: alexander.lelyakin at googlemail dot com @ 2021-04-08 21:11 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Alexander Lelyakin <alexander.lelyakin at googlemail dot com> ---
The last sequence sometimes gives ICE in open, and sometimes in install entity:

/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header memory
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header cstdio
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header span
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header shared_mutex
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header cstdint
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header clocale
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header bitset
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header semaphore
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header exception
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header numbers
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header charconv
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header locale
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header string
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header ranges
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header cstring
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header regex
----
In module imported at /usr/local/include/c++/11.0.1/regex:45:1:
/usr/local/include/c++/11.0.1/memory: note: unable to represent further
imported source locations
In file included from /usr/local/include/c++/11.0.1/sstream:38,
                 from /usr/local/include/c++/11.0.1/regex:46:
/usr/local/include/c++/11.0.1/istream:58:42: internal compiler error: in
install_entity, at cp/module.cc:7468
   58 |     class basic_istream : virtual public basic_ios<_CharT, _Traits>
      |                                          ^~~~~~~~~
0xa700a8 trees_in::install_entity(tree_node*)
        ../../gcc/gcc/cp/module.cc:7468
0xa785c6 trees_in::decl_value()
        ../../gcc/gcc/cp/module.cc:7980
0xa70f87 trees_in::tree_node(bool)
        ../../gcc/gcc/cp/module.cc:9153
0xa775ab module_state::read_cluster(unsigned int)
        ../../gcc/gcc/cp/module.cc:14811
0xa77aad module_state::load_section(unsigned int, binding_slot*)
        ../../gcc/gcc/cp/module.cc:18082
0xa77b6f module_state::lazy_load(unsigned int, binding_slot*)
        ../../gcc/gcc/cp/module.cc:18740
0xa71df0 trees_in::tree_node(bool)
        ../../gcc/gcc/cp/module.cc:9664
0xa772ab module_state::read_cluster(unsigned int)
        ../../gcc/gcc/cp/module.cc:14717
0xa77aad module_state::load_section(unsigned int, binding_slot*)
        ../../gcc/gcc/cp/module.cc:18082
0xa77b6f module_state::lazy_load(unsigned int, binding_slot*)
        ../../gcc/gcc/cp/module.cc:18740
0xa71df0 trees_in::tree_node(bool)
        ../../gcc/gcc/cp/module.cc:9664
0xa772ab module_state::read_cluster(unsigned int)
        ../../gcc/gcc/cp/module.cc:14717
0xa77aad module_state::load_section(unsigned int, binding_slot*)
        ../../gcc/gcc/cp/module.cc:18082
0xa77c68 lazy_load_binding(unsigned int, tree_node*, tree_node*, binding_slot*)
        ../../gcc/gcc/cp/module.cc:18773
0xa8988e name_lookup::search_namespace_only(tree_node*)
        ../../gcc/gcc/cp/name-lookup.c:928
0xa8aedb name_lookup::search_unqualified(tree_node*, cp_binding_level*)
        ../../gcc/gcc/cp/name-lookup.c:1158
0xa8dbe4 lookup_name_1
        ../../gcc/gcc/cp/name-lookup.c:7804
0xa8ddca lookup_name(tree_node*, LOOK_where, LOOK_want)
        ../../gcc/gcc/cp/name-lookup.c:7824
0xa9caa2 lookup_name(tree_node*, LOOK_want)
        ../../gcc/gcc/cp/name-lookup.h:401
0xa9caa2 cp_parser_lookup_name
        ../../gcc/gcc/cp/parser.c:29386
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] 3+ messages in thread

end of thread, other threads:[~2021-04-08 21:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-02  2:08 [Bug c++/99879] New: [modules] ICE in open alexander.lelyakin at googlemail dot com
2021-04-08 14:51 ` [Bug c++/99879] " alexander.lelyakin at googlemail dot com
2021-04-08 21:11 ` alexander.lelyakin at googlemail dot com

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).