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

--- Comment #2 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 stdexcept
/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
condition_variable
----
In file included from /usr/local/include/c++/11.0.1/bits/ios_base.h:41,
                 from /usr/local/include/c++/11.0.1/ios:42,
                 from /usr/local/include/c++/11.0.1/ostream:38,
                 from /usr/local/include/c++/11.0.1/bits/unique_ptr.h:42,
                 from /usr/local/include/c++/11.0.1/bits/shared_ptr_base.h:59,
                 from /usr/local/include/c++/11.0.1/bits/shared_ptr.h:53,
                 from /usr/local/include/c++/11.0.1/condition_variable:43:
/usr/local/include/c++/11.0.1/bits/locale_classes.h:163:23: internal compiler
error: in install_entity, at cp/module.cc:7457
  163 |     locale(const std::string& __s) : locale(__s.c_str()) { }
      |                       ^~~~~~
0xa68138 trees_in::install_entity(tree_node*)
        ../../gcc/gcc/cp/module.cc:7457
0xa7063b trees_in::decl_value()
        ../../gcc/gcc/cp/module.cc:8009
0xa69017 trees_in::tree_node(bool)
        ../../gcc/gcc/cp/module.cc:9189
0xa6f61b module_state::read_cluster(unsigned int)
        ../../gcc/gcc/cp/module.cc:14846
0xa6fb1d module_state::load_section(unsigned int, binding_slot*)
        ../../gcc/gcc/cp/module.cc:18117
0xa6fbdf module_state::lazy_load(unsigned int, binding_slot*)
        ../../gcc/gcc/cp/module.cc:18778
0xa69e80 trees_in::tree_node(bool)
        ../../gcc/gcc/cp/module.cc:9700
0xa6b4d2 trees_in::lang_decl_vals(tree_node*)
        ../../gcc/gcc/cp/module.cc:6860
0xa703ea trees_in::tree_node_vals(tree_node*)
        ../../gcc/gcc/cp/module.cc:7053
0xa703ea trees_in::decl_value()
        ../../gcc/gcc/cp/module.cc:7962
0xa69017 trees_in::tree_node(bool)
        ../../gcc/gcc/cp/module.cc:9189
0xa6a1cc trees_in::chained_decls()
        ../../gcc/gcc/cp/module.cc:4832
0xa6af79 trees_in::core_vals(tree_node*)
        ../../gcc/gcc/cp/module.cc:6534
0xa686e7 trees_in::tree_node_vals(tree_node*)
        ../../gcc/gcc/cp/module.cc:7051
0xa686e7 trees_in::tree_value()
        ../../gcc/gcc/cp/module.cc:8966
0xa68b1f trees_in::tree_node(bool)
        ../../gcc/gcc/cp/module.cc:9184
0xa6af87 trees_in::core_vals(tree_node*)
        ../../gcc/gcc/cp/module.cc:6536
0xa686e7 trees_in::tree_node_vals(tree_node*)
        ../../gcc/gcc/cp/module.cc:7051
0xa686e7 trees_in::tree_value()
        ../../gcc/gcc/cp/module.cc:8966
0xa68b1f trees_in::tree_node(bool)
        ../../gcc/gcc/cp/module.cc:9184
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 20210324 (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.
  • [Bug c++/99241] [mod... alexander.lelyakin at googlemail dot com via Gcc-bugs

Reply via email to