public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "alexander.lelyakin at googlemail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/99948] New: [modules] ICE in add_mergeable_specialization
Date: Wed, 07 Apr 2021 04:43:55 +0000	[thread overview]
Message-ID: <bug-99948-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 99948
           Summary: [modules] ICE in add_mergeable_specialization
           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: ---

/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header sstream
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header cwctype
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header iostream
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header cmath
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header cstdlib
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header cwchar
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header utility
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header memory
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header execution
----
In file included from /usr/local/include/c++/11.0.1/numeric:62,
                 from
/usr/local/include/c++/11.0.1/pstl/parallel_backend_serial.h:16,
                 from /usr/local/include/c++/11.0.1/pstl/parallel_backend.h:14,
                 from /usr/local/include/c++/11.0.1/pstl/algorithm_impl.h:22,
                 from
/usr/local/include/c++/11.0.1/pstl/glue_execution_defs.h:50,
                 from /usr/local/include/c++/11.0.1/execution:32:
/usr/local/include/c++/11.0.1/bits/stl_numeric.h: In function ‘constexpr void
std::iota(_ForwardIterator, _ForwardIterator, _Tp)’:
/usr/local/include/c++/11.0.1/bits/stl_numeric.h:97:25: internal compiler
error: in add_mergeable_specialization, at cp/pt.c:30015
   97 |       for (; __first != __last; ++__first)
      |                         ^~~~~~
0x707243 add_mergeable_specialization(bool, bool, spec_entry*, tree_node*,
unsigned int)
        ../../gcc/gcc/cp/pt.c:30015
0xa770ff trees_in::decl_value()
        ../../gcc/gcc/cp/module.cc:8071
0xa6f617 trees_in::tree_node(bool)
        ../../gcc/gcc/cp/module.cc:9153
0xa75c3b module_state::read_cluster(unsigned int)
        ../../gcc/gcc/cp/module.cc:14811
0xa7613d module_state::load_section(unsigned int, binding_slot*)
        ../../gcc/gcc/cp/module.cc:18082
0xa762f8 lazy_load_binding(unsigned int, tree_node*, tree_node*, binding_slot*)
        ../../gcc/gcc/cp/module.cc:18773
0xa87f2e name_lookup::search_namespace_only(tree_node*)
        ../../gcc/gcc/cp/name-lookup.c:928
0xa8957b name_lookup::search_unqualified(tree_node*, cp_binding_level*)
        ../../gcc/gcc/cp/name-lookup.c:1158
0xa8c284 lookup_name_1
        ../../gcc/gcc/cp/name-lookup.c:7804
0xa8c5fb lookup_name(tree_node*, LOOK_where, LOOK_want)
        ../../gcc/gcc/cp/name-lookup.c:7824
0xa8c5fb lookup_name(tree_node*)
        ../../gcc/gcc/cp/name-lookup.c:7832
0xa8c5fb op_unqualified_lookup
        ../../gcc/gcc/cp/name-lookup.c:9086
0xa8c5fb maybe_save_operator_binding(tree_node*)
        ../../gcc/gcc/cp/name-lookup.c:9148
0xb85b36 build_x_binary_op(op_location_t const&, tree_code, tree_node*,
tree_code, tree_node*, tree_code, tree_node**, int)
        ../../gcc/gcc/cp/typeck.c:4302
0xaa3b95 cp_parser_binary_expression
        ../../gcc/gcc/cp/parser.c:10005
0xaa430c cp_parser_assignment_expression
        ../../gcc/gcc/cp/parser.c:10143
0xaa5852 cp_parser_expression
        ../../gcc/gcc/cp/parser.c:10313
0xacbe7a cp_parser_condition
        ../../gcc/gcc/cp/parser.c:12665
0xad6c3b cp_parser_c_for
        ../../gcc/gcc/cp/parser.c:12706
0xad6c3b cp_parser_for
        ../../gcc/gcc/cp/parser.c:12687
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 20210406 (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.

             reply	other threads:[~2021-04-07  4:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-07  4:43 alexander.lelyakin at googlemail dot com [this message]
2021-04-16 18:37 ` [Bug c++/99948] " alexander.lelyakin at googlemail dot com
2021-12-30 16:12 ` 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-99948-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: link
Be 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).