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

Christopher Greeley <cgreeley at student dot bridgew.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cgreeley at student dot 
bridgew.ed
                   |                            |u

--- Comment #5 from Christopher Greeley <cgreeley at student dot bridgew.edu> 
---
This is still an issue for me using the latest GCC 13 snapshot 
"gcc-latest_13.0.0-20221016git6366e3e8847a.deb"
from: https://jwakely.github.io/pkg-gcc-latest/

I was getting segfaults when compiling modules with 11/12.1/12.2

No more segfaults but importing some include files are giving me trouble namely
trying to include: 

https://github.com/peter-winter/ctpg/blob/6ab0502fc8cffa128bb8ff383f1c4b13cf21b86a/include/ctpg/ctpg.hpp

I am using xmake: 

https://tboox.org/2022/08/25/xmake-update-v2.7.1/

root@fe9917e74f33:~/workdir# xmake
[  0%]: generating.cxx.module.deps Source/Common.mpp
[ 26%]: generating.cxx.headerunit.bmi ctpg/ctpg.hpp
error: In file included from /opt/gcc-latest/include/c++/13.0.0/ios:43,
                 from /opt/gcc-latest/include/c++/13.0.0/ostream:40,
                 from
/root/.conan/data/ctpg/1.3.7/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/ctpg/ctpg.hpp:14:
/opt/gcc-latest/include/c++/13.0.0/bits/localefwd.h:156:48: internal compiler
error: in install_entity, at cp/module.cc:7611
  156 |   template<typename _CharT, typename _InIter =
istreambuf_iterator<_CharT> >
      |                                                ^~~~~~~~~~~~~~~~~~~
0x9aeda3 trees_in::install_entity(tree_node*)
        ../../gcc/cp/module.cc:7611
0x9c04e1 trees_in::decl_value()
        ../../gcc/cp/module.cc:8125
0x9c2597 trees_in::tree_node(bool)
        ../../gcc/cp/module.cc:9325
0x9cb4db module_state::read_cluster(unsigned int)
        ../../gcc/cp/module.cc:15025
0x9cb895 module_state::load_section(unsigned int, binding_slot*)
        ../../gcc/cp/module.cc:18397
0x9cba77 lazy_load_binding(unsigned int, tree_node*, tree_node*, binding_slot*)
        ../../gcc/cp/module.cc:19105
0x9e0c52 name_lookup::search_namespace_only(tree_node*)
        ../../gcc/cp/name-lookup.cc:920
0x9e2bdb name_lookup::search_unqualified(tree_node*, cp_binding_level*)
        ../../gcc/cp/name-lookup.cc:1142
0x9eb283 lookup_name(tree_node*, LOOK_where, LOOK_want)
        ../../gcc/cp/name-lookup.cc:7562
0x9f793d lookup_name(tree_node*, LOOK_want)
        ../../gcc/cp/name-lookup.h:402
0x9f793d cp_parser_lookup_name
        ../../gcc/cp/parser.cc:30746
0xa3103e cp_parser_template_name
        ../../gcc/cp/parser.cc:18619
0xa31770 cp_parser_template_id
        ../../gcc/cp/parser.cc:18227
0xa3220e cp_parser_class_name
        ../../gcc/cp/parser.cc:25825
0xa2b23f cp_parser_qualifying_entity
        ../../gcc/cp/parser.cc:7186
0xa2b23f cp_parser_nested_name_specifier_opt
        ../../gcc/cp/parser.cc:6866
0xa27adc cp_parser_simple_type_specifier
        ../../gcc/cp/parser.cc:19805
0xa152ad cp_parser_type_specifier
        ../../gcc/cp/parser.cc:19463
0xa17155 cp_parser_type_specifier_seq
        ../../gcc/cp/parser.cc:24431
0xa23239 cp_parser_type_id_1
        ../../gcc/cp/parser.cc:24226
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

g++ (GCC) 13.0.0 20221016 (experimental)

GCC 12.1/12.2 was still giving me these problems, I think 11 did too.

Reply via email to