public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/106311] New: internal compiler error in redeclare_class_template Date: Fri, 15 Jul 2022 00:05:28 +0000 [thread overview] Message-ID: <bug-106311-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106311 Bug ID: 106311 Summary: internal compiler error in redeclare_class_template Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mpolacek at gcc dot gnu.org Target Milestone: --- Found while reducing bug 106309. template <typename, long> struct array; template <typename, size_t X> struct array { }; $ ./cc1plus -quiet p.C p.C:2:21: error: ‘size_t’ has not been declared 2 | template <typename, size_t X> struct array { }; | ^~~~~~ p.C:1:21: error: template parameter ‘long int <anonymous>’ 1 | template <typename, long> struct array; | ^~~~ p.C:2:38: internal compiler error: tree check: expected tree that contains ‘decl minimal’ structure, have ‘error_mark’ in redeclare_class_template, at cp/pt.cc:6380 2 | template <typename, size_t X> struct array { }; | ^~~~~ 0x1bcc50c tree_contains_struct_check_failed(tree_node const*, tree_node_structure_enum, char const*, int, char const*) /home/mpolacek/src/gcc/gcc/tree.cc:8991 0xb06dc6 contains_struct_check(tree_node*, tree_node_structure_enum, char const*, int, char const*) /home/mpolacek/src/gcc/gcc/tree.h:3622 0xe136e1 redeclare_class_template(tree_node*, tree_node*, tree_node*) /home/mpolacek/src/gcc/gcc/cp/pt.cc:6380 0xc40a20 xref_tag(tag_types, tree_node*, TAG_how, bool) /home/mpolacek/src/gcc/gcc/cp/decl.cc:15869 0xdaafdd cp_parser_class_head /home/mpolacek/src/gcc/gcc/cp/parser.cc:26785
next reply other threads:[~2022-07-15 0:05 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-07-15 0:05 mpolacek at gcc dot gnu.org [this message] 2022-07-15 0:06 ` [Bug c++/106311] [12/13 Regression] " mpolacek at gcc dot gnu.org 2022-07-26 12:04 ` cvs-commit at gcc dot gnu.org 2022-07-26 13:22 ` cvs-commit at gcc dot gnu.org 2022-07-26 13:24 ` mpolacek 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-106311-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).