public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/99239] New: [modules] internal compiler error: in duplicate_decls @ 2021-02-24 8:37 alexander.lelyakin at googlemail dot com 2021-03-09 7:53 ` [Bug c++/99239] " alexander.lelyakin at googlemail dot com ` (3 more replies) 0 siblings, 4 replies; 5+ messages in thread From: alexander.lelyakin at googlemail dot com @ 2021-02-24 8:37 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99239 Bug ID: 99239 Summary: [modules] internal compiler error: in duplicate_decls Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: alexander.lelyakin at googlemail dot com Target Milestone: --- g++ -std=c++20 -fmodules-ts -x c++-system-header cstdio g++ -std=c++20 -fmodules-ts -x c++-system-header string g++ -std=c++20 -fmodules-ts -x c++-system-header filesystem ----- In file included from /usr/local/include/c++/11.0.0/bits/functexcept.h:40, from /usr/local/include/c++/11.0.0/bits/stl_algobase.h:60, from /usr/local/include/c++/11.0.0/bits/char_traits.h:39, from /usr/local/include/c++/11.0.0/string:40, of module /usr/local/include/c++/11.0.0/string, imported at /usr/local/include/c++/11.0.0/stdexcept:39, included from /usr/local/include/c++/11.0.0/system_error:41, from /usr/local/include/c++/11.0.0/bits/fs_fwd.h:35, from /usr/local/include/c++/11.0.0/filesystem:44: /usr/local/include/c++/11.0.0/bits/locale_classes.h:461:11: internal compiler error: in duplicate_decls, at cp/decl.c:2023 461 | __catch(...) | ^~~~~~~ 0x6b37fc duplicate_decls(tree_node*, tree_node*, bool, bool) ../../gcc/gcc/cp/decl.c:2023 0xa83ceb check_module_override ../../gcc/gcc/cp/name-lookup.c:3615 0xa83ceb do_pushdecl ../../gcc/gcc/cp/name-lookup.c:3734 0xa848d1 do_pushdecl ../../gcc/gcc/cp/name-lookup.c:4851 0xa848d1 do_pushdecl_with_scope ../../gcc/gcc/cp/name-lookup.c:4851 0xa84b02 pushdecl_namespace_level(tree_node*, bool) ../../gcc/gcc/cp/name-lookup.c:6213 0xa85bf4 pushdecl_top_level(tree_node*) ../../gcc/gcc/cp/name-lookup.c:8675 0xa072b2 declare_library_fn ../../gcc/gcc/cp/except.c:172 0xa07e9d do_end_catch ../../gcc/gcc/cp/except.c:254 0xa07e9d push_eh_cleanup ../../gcc/gcc/cp/except.c:270 0xa07e9d expand_start_catch_block(tree_node*) ../../gcc/gcc/cp/except.c:408 0xb42764 finish_handler_parms(tree_node*, tree_node*) ../../gcc/gcc/cp/semantics.c:1526 0xac95a3 cp_parser_handler ../../gcc/gcc/cp/parser.c:27094 0xaa9bd7 cp_parser_handler_seq ../../gcc/gcc/cp/parser.c:27069 0xaa9bd7 cp_parser_try_block ../../gcc/gcc/cp/parser.c:27023 0xaa9bd7 cp_parser_statement ../../gcc/gcc/cp/parser.c:11654 0xaaaf3d cp_parser_statement_seq_opt ../../gcc/gcc/cp/parser.c:12112 0xaab018 cp_parser_compound_statement ../../gcc/gcc/cp/parser.c:12062 0xacaf9d cp_parser_implicitly_scoped_statement ../../gcc/gcc/cp/parser.c:13568 0xaaa65d cp_parser_selection_statement ../../gcc/gcc/cp/parser.c:12290 ---- g++ (GCC) 11.0.0 20210223 (experimental) ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/99239] [modules] internal compiler error: in duplicate_decls 2021-02-24 8:37 [Bug c++/99239] New: [modules] internal compiler error: in duplicate_decls alexander.lelyakin at googlemail dot com @ 2021-03-09 7:53 ` alexander.lelyakin at googlemail dot com 2021-03-09 8:16 ` alexander.lelyakin at googlemail dot com ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: alexander.lelyakin at googlemail dot com @ 2021-03-09 7:53 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99239 --- Comment #1 from Alexander Lelyakin <alexander.lelyakin at googlemail dot com> --- About half of sequences of headers producing segmentation fault are stopped on <stop_token>. However there are another variants: ---- g++ -std=c++20 -fmodules-ts -x c++-system-header stdexcept g++ -std=c++20 -fmodules-ts -x c++-system-header locale ---- /usr/local/include/c++/11.0.1/locale: internal compiler error: Segmentation fault 0x10fee8f crash_signal ../../gcc/gcc/toplev.c:327 0x6deab8 trees_out::get_tag(tree_node*) ../../gcc/gcc/cp/module.cc:4783 0x6deab8 trees_out::ref_node(tree_node*) ../../gcc/gcc/cp/module.cc:7090 0x6deab8 trees_out::ref_node(tree_node*) ../../gcc/gcc/cp/module.cc:7073 0xa5dfdc trees_out::tree_node(tree_node*) ../../gcc/gcc/cp/module.cc:8978 0xa5fec9 trees_out::type_node(tree_node*) ../../gcc/gcc/cp/module.cc:8701 0xa5e3da trees_out::tree_node(tree_node*) ../../gcc/gcc/cp/module.cc:9061 0xa5fccc trees_out::type_node(tree_node*) ../../gcc/gcc/cp/module.cc:8619 0xa5e3da trees_out::tree_node(tree_node*) ../../gcc/gcc/cp/module.cc:9061 0xa60104 trees_out::type_node(tree_node*) ../../gcc/gcc/cp/module.cc:8728 0xa5e3da trees_out::tree_node(tree_node*) ../../gcc/gcc/cp/module.cc:9061 0xa5ed0f trees_out::core_vals(tree_node*) ../../gcc/gcc/cp/module.cc:5993 0xa5fbec trees_out::tree_node_vals(tree_node*) ../../gcc/gcc/cp/module.cc:7053 0xa5fbec trees_out::fn_parms_init(tree_node*) ../../gcc/gcc/cp/module.cc:9992 0xa5c4c4 trees_out::decl_value(tree_node*, depset*) ../../gcc/gcc/cp/module.cc:7625 0xa63fd1 depset::hash::find_dependencies(module_state*) ../../gcc/gcc/cp/module.cc:13169 0xa64668 module_state::write(elf_out*, cpp_reader*) ../../gcc/gcc/cp/module.cc:17644 0xa65aff finish_module_processing(cpp_reader*) ../../gcc/gcc/cp/module.cc:19884 0x9f901b c_parse_final_cleanups() ../../gcc/gcc/cp/decl2.c:5175 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 20210308 (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. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/99239] [modules] internal compiler error: in duplicate_decls 2021-02-24 8:37 [Bug c++/99239] New: [modules] internal compiler error: in duplicate_decls alexander.lelyakin at googlemail dot com 2021-03-09 7:53 ` [Bug c++/99239] " alexander.lelyakin at googlemail dot com @ 2021-03-09 8:16 ` alexander.lelyakin at googlemail dot com 2021-03-23 12:21 ` cvs-commit at gcc dot gnu.org 2021-03-23 12:22 ` nathan at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: alexander.lelyakin at googlemail dot com @ 2021-03-09 8:16 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99239 --- Comment #2 from Alexander Lelyakin <alexander.lelyakin at googlemail dot com> --- (In reply to Alexander Lelyakin from comment #1) > About half of sequences of headers producing segmentation fault are stopped > on <stop_token>. > However there are another variants: > ---- > g++ -std=c++20 -fmodules-ts -x c++-system-header stdexcept > g++ -std=c++20 -fmodules-ts -x c++-system-header locale Sorry this was for another bug ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/99239] [modules] internal compiler error: in duplicate_decls 2021-02-24 8:37 [Bug c++/99239] New: [modules] internal compiler error: in duplicate_decls alexander.lelyakin at googlemail dot com 2021-03-09 7:53 ` [Bug c++/99239] " alexander.lelyakin at googlemail dot com 2021-03-09 8:16 ` alexander.lelyakin at googlemail dot com @ 2021-03-23 12:21 ` cvs-commit at gcc dot gnu.org 2021-03-23 12:22 ` nathan at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: cvs-commit at gcc dot gnu.org @ 2021-03-23 12:21 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99239 --- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Nathan Sidwell <nathan@gcc.gnu.org>: https://gcc.gnu.org/g:6acd6692f1ac3c2ece3da36178df73e3b12c4f65 commit r11-7785-g6acd6692f1ac3c2ece3da36178df73e3b12c4f65 Author: Nathan Sidwell <nathan@acm.org> Date: Tue Mar 23 05:18:04 2021 -0700 c++: Over-zealous assert [PR 99239] This was simply an overzealous assert. Possibly correct thinking at the time that code was written, but not true now. Of course we can have imported artificial decls. PR c++/99239 gcc/cp/ * decl.c (duplicate_decls): Remove assert about maybe-imported artificial decls. gcc/testsuite/ * g++.dg/modules/pr99239_a.H: New. * g++.dg/modules/pr99239_b.H: New. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/99239] [modules] internal compiler error: in duplicate_decls 2021-02-24 8:37 [Bug c++/99239] New: [modules] internal compiler error: in duplicate_decls alexander.lelyakin at googlemail dot com ` (2 preceding siblings ...) 2021-03-23 12:21 ` cvs-commit at gcc dot gnu.org @ 2021-03-23 12:22 ` nathan at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: nathan at gcc dot gnu.org @ 2021-03-23 12:22 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99239 Nathan Sidwell <nathan at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED --- Comment #4 from Nathan Sidwell <nathan at gcc dot gnu.org> --- * 6acd6692f1a 2021-03-23 | c++: Over-zealous assert [PR 99239] ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-03-23 12:22 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2021-02-24 8:37 [Bug c++/99239] New: [modules] internal compiler error: in duplicate_decls alexander.lelyakin at googlemail dot com 2021-03-09 7:53 ` [Bug c++/99239] " alexander.lelyakin at googlemail dot com 2021-03-09 8:16 ` alexander.lelyakin at googlemail dot com 2021-03-23 12:21 ` cvs-commit at gcc dot gnu.org 2021-03-23 12:22 ` nathan 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).