[Bug c++/99227] [meta] [modules] Bugs relating to header-units of STL header files
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99227 Bug 99227 depends on bug 99426, which changed state. Bug 99426 Summary: [modules] failed to read compiled module cluster 1186: Bad file data https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99426 What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED
[Bug c++/99227] [meta] [modules] Bugs relating to header-units of STL header files
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99227 Bug 99227 depends on bug 94476, which changed state. Bug 94476 Summary: NSDMI deferred parse https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94476 What|Removed |Added Status|SUSPENDED |RESOLVED Resolution|--- |FIXED
[Bug c++/99227] [meta] [modules] Bugs relating to header-units of STL header files
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99227 Bug 99227 depends on bug 99244, which changed state. Bug 99244 Summary: [modules] ICE in tsubst_copy, at cp/pt.c:16581 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99244 What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED
[Bug c++/99227] [meta] [modules] Bugs relating to header-units of STL header files
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99227 Bug 99227 depends on bug 110861, which changed state. Bug 110861 Summary: Bad codegen leading to runtime segfault when mixing import and #include https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110861 What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
[Bug c++/99227] [meta] [modules] Bugs relating to header-units of STL header files
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99227 Bug 99227 depends on bug 102600, which changed state. Bug 102600 Summary: [modules] ICE Segmentation fault during GIMPLE pass evrp https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102600 What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED
[Bug c++/99227] [meta] [modules] Bugs relating to header-units of STL header files
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99227 Bug 99227 depends on bug 106825, which changed state. Bug 106825 Summary: [modules] header unit based std::shared_ptr<...>(...) use gets: undefined reference to `std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release()', aarch64 example https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106825 What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|--- |DUPLICATE
[Bug c++/99227] [meta] [modules] Bugs relating to header-units of STL header files
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99227 Bug 99227 depends on bug 100583, which changed state. Bug 100583 Summary: [modules] ICE when importing https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100583 What|Removed |Added Status|NEW |RESOLVED Resolution|--- |DUPLICATE
[Bug c++/99227] [meta] [modules] Bugs relating to header-units of STL header files
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99227 Bug 99227 depends on bug 107033, which changed state. Bug 107033 Summary: [13 Regression] [modules] Variable template of type trait via importable header gives wrong result https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107033 What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED
[Bug c++/99227] [meta] [modules] Bugs relating to header-units of STL header files
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99227 Bug 99227 depends on bug 102576, which changed state. Bug 102576 Summary: [modules] Importing doesn't permit implicit uses https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102576 What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
[Bug c++/99227] [meta] [modules] Bugs relating to header-units of STL header files
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99227 Bug 99227 depends on bug 99936, which changed state. Bug 99936 Summary: [modules] FAIL: g++.dg/modules/xtreme-header* on Darwin https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99936 What|Removed |Added Status|WAITING |RESOLVED Resolution|--- |FIXED
[Bug c++/99227] [meta] [modules] Bugs relating to header-units of STL header files
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99227 Bug 99227 depends on bug 103118, which changed state. Bug 103118 Summary: [modules] ICE tree check in get_merge_kind at cp/module.cc https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103118 What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
[Bug c++/99227] [meta] [modules] Bugs relating to header-units of STL header files
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99227 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2022-01-01 Ever confirmed|0 |1 Status|UNCONFIRMED |NEW --- Comment #5 from Andrew Pinski --- (In reply to Alexander Lelyakin from comment #3) > There is a suspect that 99737,99479,99722,99948 are all somehow connected > with hashtab checking. At least some of examples change diagnostic with: > --param=hash-table-verification-limit=1000 The hash table verification bug looks to be PR 103769. The majority of the other ones looks to be similar to PR 99479 where there is some write/read after free happening and I reduced that testcase down to a simple testcase (30 lines header file and a 4 line source file).
[Bug c++/99227] [meta] [modules] Bugs relating to header-units of STL header files
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99227 Bug 99227 depends on bug 99722, which changed state. Bug 99722 Summary: [modules] internal compiler error: segmentation fault https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99722 What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|--- |DUPLICATE
[Bug c++/99227] [meta] [modules] Bugs relating to header-units of STL header files
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99227 Bug 99227 depends on bug 99861, which changed state. Bug 99861 Summary: [modules] ICE in hashtab_chk_error https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99861 What|Removed |Added Status|NEW |RESOLVED Resolution|--- |DUPLICATE
[Bug c++/99227] [meta] [modules] Bugs relating to header-units of STL header files
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99227 Bug 99227 depends on bug 100129, which changed state. Bug 100129 Summary: [modules] ICE free(): invalid pointer https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100129 What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|--- |DUPLICATE
[Bug c++/99227] [meta] [modules] Bugs relating to header-units of STL header files
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99227 Bug 99227 depends on bug 99737, which changed state. Bug 99737 Summary: [modules] malloc(): smallbin double linked list corrupted https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99737 What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|--- |DUPLICATE
[Bug c++/99227] [meta] [modules] Bugs relating to header-units of STL header files
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99227 Bug 99227 depends on bug 99222, which changed state. Bug 99222 Summary: [modules] system header-unit ICEs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99222 What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|--- |DUPLICATE
[Bug c++/99227] [meta] [modules] Bugs relating to header-units of STL header files
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99227 Johel Ernesto Guerrero Peña changed: What|Removed |Added CC||johelegp at gmail dot com --- Comment #4 from Johel Ernesto Guerrero Peña --- Also depends on Bug 100583.
[Bug c++/99227] [meta] [modules] Bugs relating to header-units of STL header files
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99227 --- Comment #3 from Alexander Lelyakin --- During last two and a half weeks 3 bugs was closed: 99283 - in assert_definition 99284 - in key_mergeable 99427 - non-constant condition for static assertion 99246 ICE in write_location was reopened under number 99915 And 3 added: 99948 - in add_mergeable_specialization 99861 - in hashtab_chk_error 100129 - ICE free(): invalid pointer There is a suspect that 99737,99479,99722,99948 are all somehow connected with hashtab checking. At least some of examples change diagnostic with: --param=hash-table-verification-limit=1000 So here: http://lelyakin.de/hashtab/ you can find results of slightly modified script that compiles system modules with additional hashtab checking.
[Bug c++/99227] [meta] [modules] Bugs relating to header-units of STL header files
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99227 Bug 99227 depends on bug 99855, which changed state. Bug 99855 Summary: [modules] ICE Error reporting routines re-entered. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99855 What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
[Bug c++/99227] [meta] [modules] Bugs relating to header-units of STL header files
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99227 Bug 99227 depends on bug 99747, which changed state. Bug 99747 Summary: [modules] ICE in make_dependency, at cp/module.cc:12396 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99747 What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
[Bug c++/99227] [meta] [modules] Bugs relating to header-units of STL header files
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99227 Bug 99227 depends on bug 99735, which changed state. Bug 99735 Summary: [modules] in system headers: non-template type ‘rebind_alloc’ used as a template https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99735 What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
[Bug c++/99227] [meta] [modules] Bugs relating to header-units of STL header files
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99227 Bug 99227 depends on bug 99283, which changed state. Bug 99283 Summary: [modules] ICE in assert_definition, at cp/module.cc:4608 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99283 What|Removed |Added Status|WAITING |RESOLVED Resolution|--- |FIXED
[Bug c++/99227] [meta] [modules] Bugs relating to header-units of STL header files
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99227 Bug 99227 depends on bug 99284, which changed state. Bug 99284 Summary: [modules] ICE in key_mergeable, at cp/module.cc:10441 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99284 What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
[Bug c++/99227] [meta] [modules] Bugs relating to header-units of STL header files
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99227 Bug 99227 depends on bug 99223, which changed state. Bug 99223 Summary: [modules] stdl header-unit ICE https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99223 What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|--- |DUPLICATE
[Bug c++/99227] [meta] [modules] Bugs relating to header-units of STL header files
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99227 Bug 99227 depends on bug 99427, which changed state. Bug 99427 Summary: [modules] in system headers: non-constant condition for static assertion https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99427 What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED
[Bug c++/99227] [meta] [modules] Bugs relating to header-units of STL header files
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99227 --- Comment #2 from Alexander Lelyakin --- I have started some script that continuously do following: git pull configure make make install do 5000 attempts to compile system headers in random order upload the results of the attempts to http://lelyakin.de/modules They are sorted by error message and by count of successfully compiled headers. Results are updated approximately every 7-8 hours. Currently reproducible are the following errors: 99737 - Aborted 99479 - Aborted signal terminated program cc1plus 99722 - Segmentation fault 99426 - failed to read compiled module cluster 99283 - in assert_definition 99241 - in install_entity 99284 - in key_mergeable 99242 - in lookup_mark 99243 - in set_filename 99244 - in tsubst_copy 99246 - in write_location 99427 - non-constant condition for static assertion 99760 - qsort checking failed 99274 - wrong number of template arguments (1, should be 2
[Bug c++/99227] [meta] [modules] Bugs relating to header-units of STL header files
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99227 Bug 99227 depends on bug 99424, which changed state. Bug 99424 Summary: [modules] ICE tree check: expected tree_vec, have error_mark in lookup_template_class_1, at cp/pt.c:9803 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99424 What|Removed |Added Status|WAITING |RESOLVED Resolution|--- |FIXED
[Bug c++/99227] [meta] [modules] Bugs relating to header-units of STL header files
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99227 Bug 99227 depends on bug 99483, which changed state. Bug 99483 Summary: [modules] ICE tree check: expected tree_vec, have bind_expr in lookup_template_class_1, at cp/pt.c:9803 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99483 What|Removed |Added Status|WAITING |RESOLVED Resolution|--- |FIXED
[Bug c++/99227] [meta] [modules] Bugs relating to header-units of STL header files
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99227 Bug 99227 depends on bug 99482, which changed state. Bug 99482 Summary: [modules] ICE tree check: expected tree_vec, have addr_expr in lookup_template_class_1, at cp/pt.c:9803 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99482 What|Removed |Added Status|WAITING |RESOLVED Resolution|--- |FIXED
[Bug c++/99227] [meta] [modules] Bugs relating to header-units of STL header files
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99227 Bug 99227 depends on bug 99734, which changed state. Bug 99734 Summary: [modules] ICE in most_specialized_instantiation https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99734 What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
[Bug c++/99227] [meta] [modules] Bugs relating to header-units of STL header files
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99227 Bug 99227 depends on bug 99239, which changed state. Bug 99239 Summary: [modules] internal compiler error: in duplicate_decls https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99239 What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
[Bug c++/99227] [meta] [modules] Bugs relating to header-units of STL header files
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99227 Bug 99227 depends on bug 99484, which changed state. Bug 99484 Summary: [modules] ICE same canonical type node for different types ‘void’ and ‘std::__void_t<_Op<_Args ...> >’ https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99484 What|Removed |Added Status|WAITING |RESOLVED Resolution|--- |FIXED
[Bug c++/99227] [meta] [modules] Bugs relating to header-units of STL header files
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99227 Bug 99227 depends on bug 99480, which changed state. Bug 99480 Summary: [modules] ICE in import_entity_index, at cp/module.cc:3952 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99480 What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED
[Bug c++/99227] [meta] [modules] Bugs relating to header-units of STL header files
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99227 Bug 99227 depends on bug 99425, which changed state. Bug 99425 Summary: [modules] ICE tree check: expected tree_vec, have tree_list in lookup_template_class_1, at cp/pt.c:9803 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99425 What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
[Bug c++/99227] [meta] [modules] Bugs relating to header-units of STL header files
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99227 Bug 99227 depends on bug 99238, which changed state. Bug 99238 Summary: [modules] internal compiler error: segmentation fault https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99238 What|Removed |Added Status|REOPENED|RESOLVED Resolution|--- |FIXED
[Bug c++/99227] [meta] [modules] Bugs relating to header-units of STL header files
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99227 Bug 99227 depends on bug 99481, which changed state. Bug 99481 Summary: [modules] ICE tree check: expected template_decl, have function_decl in decl_value, at cp/module.cc:7938 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99481 What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|--- |DUPLICATE
[Bug c++/99227] [meta] [modules] Bugs relating to header-units of STL header files
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99227 Bug 99227 depends on bug 99238, which changed state. Bug 99238 Summary: [modules] internal compiler error: segmentation fault https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99238 What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED |---
[Bug c++/99227] [meta] [modules] Bugs relating to header-units of STL header files
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99227 Bug 99227 depends on bug 99238, which changed state. Bug 99238 Summary: [modules] internal compiler error: segmentation fault https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99238 What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED
[Bug c++/99227] [meta] [modules] Bugs relating to header-units of STL header files
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99227 Bug 99227 depends on bug 99240, which changed state. Bug 99240 Summary: [modules] ICE in get_merge_kind, at cp/module.cc:10169 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99240 What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
[Bug c++/99227] [meta] [modules] Bugs relating to header-units of STL header files
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99227 Bug 99227 depends on bug 99248, which changed state. Bug 99248 Summary: [modules] ICE expected binding_vector, have overload in lookup_elaborated_type_1, at cp/name-lookup.c:8013 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99248 What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED
[Bug c++/99227] [meta] [modules] Bugs relating to header-units of STL header files
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99227 Bug 99227 depends on bug 99423, which changed state. Bug 99423 Summary: [modules] ICE tree check: expected tree_vec, have ggc_freed in lookup_template_class_1, at cp/pt.c:9803 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99423 What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED
[Bug c++/99227] [meta] [modules] Bugs relating to header-units of STL header files
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99227 Bug 99227 depends on bug 99285, which changed state. Bug 99285 Summary: [modules] ICE canonical types differ for identical types ‘std::common_type... https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99285 What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
[Bug c++/99227] [meta] [modules] Bugs relating to header-units of STL header files
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99227 Alexander Lelyakin changed: What|Removed |Added CC||alexander.lelyakin@googlema ||il.com --- Comment #1 from Alexander Lelyakin --- Just want to express my current understanding of situation. Here: https://gcc.gnu.org/onlinedocs/gcc/C_002b_002b-Modules.html#C_002b_002b-Modules is stated: "The Standard Library is not provided as importable header units. If you want to import such units, you must explicitly build them first. If you do not do this with care, you may have multiple declarations, which the module machinery must merge—compiler resource usage can be affected by how you partition header files into header units." Any header file in "/usr[/local]/include/c++/11[.0.1]" can be precompiled as a header module like: g++ -std=c++20 -fmodules-ts -x c++-system-header iostream And can be successfully used as: import ; int main() { std::cout<<"Hello\n"; return 0; } g++ -std=c++20 -fmodules-ts test.c++ However if you will compile more than one header into the same 'gcm.cache' directory, you will receive various compiler errors depending of order of compilation of headers. Currently there is no way to compile all headers. Longest sequence i have seen so far was 35 headers, shortest - just 2. This meta bug will accumulate bug reports discovered during attempts to precompile system headers.
[Bug c++/99227] [meta] [modules] Bugs relating to header-units of STL header files
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99227 Bug 99227 depends on bug 99245, which changed state. Bug 99245 Summary: [modules] ICE in write_cluster, at cp/module.cc:14600 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99245 What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED
[Bug c++/99227] [meta] [modules] Bugs relating to header-units of STL header files
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99227 Bug 99227 depends on bug 99247, which changed state. Bug 99247 Summary: [modules] ICE in write_macro_maps, at cp/module.cc:16154 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99247 What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|--- |DUPLICATE
[Bug c++/99227] [meta] [modules] Bugs relating to header-units of STL header files
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99227 Bug 99227 depends on bug 99246, which changed state. Bug 99246 Summary: [modules] ICE in write_location, at cp/module.cc:15687 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99246 What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|--- |DUPLICATE
[Bug c++/99227] [meta] [modules] Bugs relating to header-units of STL header files
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99227 Bug 99227 depends on bug 99237, which changed state. Bug 99237 Summary: [modules] internal compiler error: in write_macro_maps https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99237 What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|--- |DUPLICATE