public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "saifi.khan at nishan dot io" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/109981] New: ICE encountered while generating header units in the given sequence in a script Date: Fri, 26 May 2023 08:06:45 +0000 [thread overview] Message-ID: <bug-109981-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109981 Bug ID: 109981 Summary: ICE encountered while generating header units in the given sequence in a script Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: saifi.khan at nishan dot io Target Milestone: --- Created attachment 55163 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55163&action=edit script used to generate header units ENV gcc (GCC) 14.0.0 20230525 (experimental) wrote a Perl script to wrap the generation of the header units. Please see the attached script file. The following is the trace of the processing along with the ICE. --- header-unit 'execution' --- g++ -std=c++23 -g3 -fmodules-ts -fmodule-only -c -x c++-system-header algorithm g++ -std=c++23 -g3 -fmodules-ts -fmodule-only -c -x c++-system-header array g++ -std=c++23 -g3 -fmodules-ts -fmodule-only -c -x c++-system-header charconv g++ -std=c++23 -g3 -fmodules-ts -fmodule-only -c -x c++-system-header chrono g++ -std=c++23 -g3 -fmodules-ts -fmodule-only -c -x c++-system-header concepts g++ -std=c++23 -g3 -fmodules-ts -fmodule-only -c -x c++-system-header expected g++ -std=c++23 -g3 -fmodules-ts -fmodule-only -c -x c++-system-header execution In file included from /opt/gcc/include/c++/14.0.0/pstl/unseq_backend_simd.h:15, from /opt/gcc/include/c++/14.0.0/pstl/memory_impl.h:15, from /opt/gcc/include/c++/14.0.0/pstl/algorithm_impl.h:20, from /opt/gcc/include/c++/14.0.0/pstl/glue_execution_defs.h:50, from /opt/gcc/include/c++/14.0.0/execution:34: /opt/gcc/include/c++/14.0.0/pstl/utils.h: In function ‘typename std::result_of<_Fp()>::type __pstl::__internal::__except_handler(_Fp)’: /opt/gcc/include/c++/14.0.0/pstl/utils.h:35:14: internal compiler error: in install_entity, at cp/module.cc:7630 35 | std::__terminate(); // Good bye according to the standard [algorithms.parallel.exceptions] | ^~~~~~~~~~~ 0x74db56 trees_in::install_entity(tree_node*) /opt/gcc/src/gcc/cp/module.cc:7630 0xb4c154 trees_in::decl_value() /opt/gcc/src/gcc/cp/module.cc:8144 0xb45b57 trees_in::tree_node(bool) /opt/gcc/src/gcc/cp/module.cc:9344 0xb4dabb module_state::read_cluster(unsigned int) /opt/gcc/src/gcc/cp/module.cc:15022 0xb4e025 module_state::load_section(unsigned int, binding_slot*) /opt/gcc/src/gcc/cp/module.cc:18394 0xb4e0f2 module_state::lazy_load(unsigned int, binding_slot*) /opt/gcc/src/gcc/cp/module.cc:19065 0xb46b7f trees_in::tree_node(bool) /opt/gcc/src/gcc/cp/module.cc:9888 0xb4d829 module_state::read_cluster(unsigned int) /opt/gcc/src/gcc/cp/module.cc:14928 0xb4e025 module_state::load_section(unsigned int, binding_slot*) /opt/gcc/src/gcc/cp/module.cc:18394 0xb4e22c lazy_load_binding(unsigned int, tree_node*, tree_node*, binding_slot*) /opt/gcc/src/gcc/cp/module.cc:19102 0xb609b5 name_lookup::search_namespace_only(tree_node*) /opt/gcc/src/gcc/cp/name-lookup.cc:919 0xb60bc2 name_lookup::search_namespace(tree_node*) /opt/gcc/src/gcc/cp/name-lookup.cc:1005 0xb60bc2 name_lookup::search_namespace(tree_node*) /opt/gcc/src/gcc/cp/name-lookup.cc:998 0xb60cc1 name_lookup::search_qualified(tree_node*, bool) /opt/gcc/src/gcc/cp/name-lookup.cc:1066 0xb65384 qualified_namespace_lookup /opt/gcc/src/gcc/cp/name-lookup.cc:6921 0xb66560 lookup_qualified_name(tree_node*, tree_node*, LOOK_want, bool) /opt/gcc/src/gcc/cp/name-lookup.cc:6882 0xb77d21 cp_parser_lookup_name /opt/gcc/src/gcc/cp/parser.cc:31291 0xba9be9 cp_parser_class_name /opt/gcc/src/gcc/cp/parser.cc:26003 0xba9edc cp_parser_type_name /opt/gcc/src/gcc/cp/parser.cc:20333 0xbbad17 cp_parser_simple_type_specifier /opt/gcc/src/gcc/cp/parser.cc:20024 Next, i pushed the execution file to the last, then it errors out on 'span' --- header unit 'span' --- In file included from /opt/gcc/include/c++/14.0.0/span:44: /opt/gcc/include/c++/14.0.0/bits/ranges_base.h:140:27: error: ‘__class_or_enum’ was not declared in this scope 140 | concept __adl_end = __class_or_enum<remove_reference_t<_Tp>> | ^~~~~~~~~~~~~~~ /opt/gcc/include/c++/14.0.0/bits/ranges_base.h:140:65: error: expected primary-expression before ‘>’ token 140 | concept __adl_end = __class_or_enum<remove_reference_t<_Tp>> | ^~ /opt/gcc/include/c++/14.0.0/bits/ranges_base.h:141:12: error: expected identifier before ‘requires’ 141 | && requires(_Tp& __t) | ^~~~~~~~ /opt/gcc/include/c++/14.0.0/bits/ranges_base.h:190:30: error: ‘__class_or_enum’ was not declared in this scope 190 | concept __adl_rbegin = __class_or_enum<remove_reference_t<_Tp>> | ^~~~~~~~~~~~~~~ /opt/gcc/include/c++/14.0.0/bits/ranges_base.h:190:68: error: expected primary-expression before ‘>’ token 190 | concept __adl_rbegin = __class_or_enum<remove_reference_t<_Tp>> | ^~ /opt/gcc/include/c++/14.0.0/bits/ranges_base.h:191:12: error: expected identifier before ‘requires’ 191 | && requires(_Tp& __t) | ^~~~~~~~ /opt/gcc/include/c++/14.0.0/bits/ranges_base.h:254:28: error: ‘__class_or_enum’ was not declared in this scope 254 | concept __adl_rend = __class_or_enum<remove_reference_t<_Tp>> | ^~~~~~~~~~~~~~~ /opt/gcc/include/c++/14.0.0/bits/ranges_base.h:254:66: error: expected primary-expression before ‘>’ token 254 | concept __adl_rend = __class_or_enum<remove_reference_t<_Tp>> | ^~ /opt/gcc/include/c++/14.0.0/bits/ranges_base.h:255:12: error: expected identifier before ‘requires’ 255 | && requires(_Tp& __t) | ^~~~~~~~ /opt/gcc/include/c++/14.0.0/bits/ranges_base.h:312:28: error: ‘__class_or_enum’ was not declared in this scope 312 | concept __adl_size = __class_or_enum<remove_reference_t<_Tp>> | ^~~~~~~~~~~~~~~ /opt/gcc/include/c++/14.0.0/bits/ranges_base.h:312:66: error: expected primary-expression before ‘>’ token 312 | concept __adl_size = __class_or_enum<remove_reference_t<_Tp>> | ^~ /opt/gcc/include/c++/14.0.0/bits/ranges_base.h:313:12: error: expected identifier before ‘!’ token 313 | && !disable_sized_range<remove_cvref_t<_Tp>> | ^ /opt/gcc/include/c++/14.0.0/span: warning: not writing module ‘/opt/gcc/include/c++/14.0.0/span’ due to errors Uncaught exception from user code:
next reply other threads:[~2023-05-26 8:06 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-05-26 8:06 saifi.khan at nishan dot io [this message] 2023-05-27 1:26 ` [Bug c++/109981] " pinskia 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-109981-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).