public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "byteslice at airmail dot cc" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/106152] New: New ICE compiling template expressions Date: Thu, 30 Jun 2022 19:16:37 +0000 [thread overview] Message-ID: <bug-106152-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106152 Bug ID: 106152 Summary: New ICE compiling template expressions Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: byteslice at airmail dot cc Target Milestone: --- Created attachment 53229 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53229&action=edit Reduced example Compile with -std=gnu++20. No ICE on 12. g++ (f35dbc02092fbcd3d814fcd9fe8e871c3f741fd, binutils-2.38) 13.0.0 20220626 -- <source>: In instantiation of 'struct invert_typelist_impl<index_tuple<0> >': <source>:20:75: required from 'struct invert_typelist<typelist<int> >' <source>:22:11: required from here <source>:15:21: internal compiler error: in iterative_hash_template_arg, at cp/pt.cc:1819 15 | static const long last_idx; | ^~~~~~~~ 0x2212db9 internal_error(char const*, ...) ???:0 0x74a531 fancy_abort(char const*, int, char const*) ???:0 0x9a2397 iterative_hash_template_arg(tree_node*, unsigned int) ???:0 0x9a16bd iterative_hash_template_arg(tree_node*, unsigned int) ???:0 0x9cb387 tsubst(tree_node*, tree_node*, int, tree_node*) ???:0 0x9f7d56 tsubst_template_args(tree_node*, tree_node*, int, tree_node*) ???:0 0x9caeea tsubst(tree_node*, tree_node*, int, tree_node*) ???:0 0x9e6987 tsubst_pack_expansion(tree_node*, tree_node*, int, tree_node*) ???:0 0x9f7fd2 tsubst_template_args(tree_node*, tree_node*, int, tree_node*) ???:0 0x9cb0e9 tsubst(tree_node*, tree_node*, int, tree_node*) ???:0 0x9cb387 tsubst(tree_node*, tree_node*, int, tree_node*) ???:0 0xa118b1 instantiate_class_template(tree_node*) ???:0 0xa11b27 instantiate_class_template(tree_node*) ???:0 0xa87f8b complete_type_or_maybe_complain(tree_node*, tree_node*, int) ???:0 0x9b8750 process_template_parm(tree_node*, unsigned int, tree_node*, bool, bool) ???:0 0x993a5d c_parse_file() ???:0 0xb2a161 c_common_parse_file() ???:0 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions.
next reply other threads:[~2022-06-30 19:16 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-06-30 19:16 byteslice at airmail dot cc [this message] 2022-07-04 12:05 ` [Bug c++/106152] New ICE compiling template expressions since r13-1045-gcb7fd1ea85feea7e marxin at gcc dot gnu.org 2022-07-05 12:53 ` ppalka 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-106152-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).