public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/109981] New: ICE encountered while generating header units in the given sequence in a script
@ 2023-05-26  8:06 saifi.khan at nishan dot io
  2023-05-27  1:26 ` [Bug c++/109981] " pinskia at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: saifi.khan at nishan dot io @ 2023-05-26  8:06 UTC (permalink / raw)
  To: gcc-bugs

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:

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

* [Bug c++/109981] ICE encountered while generating header units in the given sequence in a script
  2023-05-26  8:06 [Bug c++/109981] New: ICE encountered while generating header units in the given sequence in a script saifi.khan at nishan dot io
@ 2023-05-27  1:26 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-05-27  1:26 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup of bug 99241.

*** This bug has been marked as a duplicate of bug 99241 ***

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

end of thread, other threads:[~2023-05-27  1:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-26  8:06 [Bug c++/109981] New: ICE encountered while generating header units in the given sequence in a script saifi.khan at nishan dot io
2023-05-27  1:26 ` [Bug c++/109981] " pinskia 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).