public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "asolokha at gmx dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/97511] New: [11 Regression] ICE in template_parm_to_arg, at cp/pt.c:4744 Date: Wed, 21 Oct 2020 09:29:48 +0000 [thread overview] Message-ID: <bug-97511-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97511 Bug ID: 97511 Summary: [11 Regression] ICE in template_parm_to_arg, at cp/pt.c:4744 Product: gcc Version: 11.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: asolokha at gmx dot com Target Milestone: --- g++-11.0.0-alpha20201018 snapshot (g:1e70b1a358b6ce3b894f284d88fbb90518d45cc0) ICEs when compiling the following testcase, reduced from test/SemaCXX/alias-template.cpp from the clang 10.0.1 test suite: template <typename Z> using Z = Z; % g++-11.0.0 -c bul6e40q.cpp bul6e40q.cpp:1:34: internal compiler error: in template_parm_to_arg, at cp/pt.c:4744 1 | template <typename Z> using Z = Z; | ^ 0x67334e template_parm_to_arg(tree_node*) /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201018/work/gcc-11-20201018/gcc/cp/pt.c:4744 0xa0b849 template_parms_level_to_args(tree_node*) /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201018/work/gcc-11-20201018/gcc/cp/pt.c:4794 0xa0b927 template_parms_to_args(tree_node*) /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201018/work/gcc-11-20201018/gcc/cp/pt.c:4822 0xa4f31f current_template_args /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201018/work/gcc-11-20201018/gcc/cp/pt.c:4839 0xa4f31f push_template_decl(tree_node*, bool) /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201018/work/gcc-11-20201018/gcc/cp/pt.c:5874 0x9436b1 start_decl(cp_declarator const*, cp_decl_specifier_seq*, int, tree_node*, tree_node*, tree_node**) /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201018/work/gcc-11-20201018/gcc/cp/decl.c:5398 0x9e200f cp_parser_alias_declaration /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201018/work/gcc-11-20201018/gcc/cp/parser.c:20240 0x9fb82f cp_parser_template_declaration_after_parameters /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201018/work/gcc-11-20201018/gcc/cp/parser.c:29233 0x9fbd00 cp_parser_explicit_template_declaration /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201018/work/gcc-11-20201018/gcc/cp/parser.c:29507 0x9ffa29 cp_parser_declaration /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201018/work/gcc-11-20201018/gcc/cp/parser.c:13524 0xa00010 cp_parser_translation_unit /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201018/work/gcc-11-20201018/gcc/cp/parser.c:4793 0xa00010 c_parse_file() /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201018/work/gcc-11-20201018/gcc/cp/parser.c:44170 0xb2172d c_common_parse_file() /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201018/work/gcc-11-20201018/gcc/c-family/c-opts.c:1188
next reply other threads:[~2020-10-21 9:29 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-10-21 9:29 asolokha at gmx dot com [this message] 2020-10-21 10:33 ` [Bug c++/97511] " rguenth at gcc dot gnu.org 2020-10-21 12:54 ` [Bug c++/97511] [11 Regression] ICE in template_parm_to_arg, at cp/pt.c:4744 since r11-3296-ge5d72c840a226fdb marxin at gcc dot gnu.org 2020-10-21 18:20 ` ppalka at gcc dot gnu.org 2020-10-22 11:34 ` cvs-commit at gcc dot gnu.org 2020-10-22 11:42 ` 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-97511-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).