public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "gscfq@t-online.de" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/105228] New: [9/10/11/12 Regression] ICE tree check: expected tree that contains 'decl minimal' structure, have 'error_mark' in decl_anon_ns_mem_p, at cp/tree.cc:3826 Date: Mon, 11 Apr 2022 16:53:12 +0000 [thread overview] Message-ID: <bug-105228-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105228 Bug ID: 105228 Summary: [9/10/11/12 Regression] ICE tree check: expected tree that contains 'decl minimal' structure, have 'error_mark' in decl_anon_ns_mem_p, at cp/tree.cc:3826 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gscfq@t-online.de Target Milestone: --- Started with r7 : (gcc configured with --enable-checking=yes) $ cat z1.cc template<template<void> class> struct A { template<typename ... Args> static void foo() { foo(); } }; $ g++-12-20220410 -c z1.cc z1.cc:1:19: error: 'void' is not a valid type for a template non-type parameter 1 | template<template<void> class> struct A | ^~~~ z1.cc: In substitution of 'template<template<<typeprefixerror><anonymous> > class<template-parameter-1-1> > template<class ... Args> static void A< <template-parameter-1-1> >::foo() [with Args = <missing>; <template-parameter-1-1> = {}]': z1.cc:4:26: required from here z1.cc:4:15: internal compiler error: tree check: expected tree that contains 'decl minimal' structure, have 'error_mark' in decl_anon_ns_mem_p, at cp/tree.cc:3826 4 | static void foo() { foo(); } | ^~~ 0x6c9ab3 tree_contains_struct_check_failed(tree_node const*, tree_node_structure_enum, char const*, int, char const*) ../../gcc/tree.cc:8953 0xa1b4ac contains_struct_check(tree_node const*, tree_node_structure_enum, char const*, int, char const*) ../../gcc/tree.h:3827 0xa1b4ac decl_anon_ns_mem_p(tree_node const*) ../../gcc/cp/tree.cc:3826 0x8182b7 determine_visibility(tree_node*) ../../gcc/cp/decl2.cc:2867 0x9ae8bf tsubst_function_decl ../../gcc/cp/pt.cc:14305 0x9924f3 tsubst_decl ../../gcc/cp/pt.cc:14585 0x97ad67 tsubst(tree_node*, tree_node*, int, tree_node*) ../../gcc/cp/pt.cc:15565 0x9b4cb2 instantiate_template_1 ../../gcc/cp/pt.cc:21625 0x9b4cb2 instantiate_template(tree_node*, tree_node*, int) ../../gcc/cp/pt.cc:21684 0x9bc656 fn_type_unification(tree_node*, tree_node*, tree_node*, tree_node* const*, unsigned int, tree_node*, unification_kind_t, int, conversion**, bool, bool) ../../gcc/cp/pt.cc:22150 0x72543b add_template_candidate_real ../../gcc/cp/call.cc:3544 0x7265a1 add_template_candidate ../../gcc/cp/call.cc:3636 0x7265a1 add_candidates ../../gcc/cp/call.cc:6176 0x736240 add_candidates ../../gcc/cp/call.cc:10994 0x736240 build_new_method_call(tree_node*, tree_node*, vec<tree_node*, va_gc, vl_embed>**, tree_node*, int, tree_node**, int) ../../gcc/cp/call.cc:11038 0x9e7dde finish_call_expr(tree_node*, vec<tree_node*, va_gc, vl_embed>**, bool, bool, int) ../../gcc/cp/semantics.cc:2791 0x9189d8 cp_parser_postfix_expression ../../gcc/cp/parser.cc:7880 0x92ffb1 cp_parser_unary_expression ../../gcc/cp/parser.cc:9029 0x8fd91f cp_parser_cast_expression ../../gcc/cp/parser.cc:9933 0x8fe1e1 cp_parser_binary_expression ../../gcc/cp/parser.cc:10035
next reply other threads:[~2022-04-11 16:53 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-04-11 16:53 gscfq@t-online.de [this message] 2022-04-11 16:56 ` [Bug c++/105228] " mpolacek at gcc dot gnu.org 2022-04-12 7:43 ` rguenth at gcc dot gnu.org 2022-04-12 7:46 ` [Bug c++/105228] [9/10/11/12 Regression] ICE tree check: expected tree that contains 'decl minimal' structure, have 'error_mark' in decl_anon_ns_mem_p, at cp/tree.cc:3826 since r7-755-g23cb72663051cd3f marxin at gcc dot gnu.org 2022-05-27 9:47 ` [Bug c++/105228] [10/11/12/13 " rguenth at gcc dot gnu.org 2022-06-28 10:49 ` jakub at gcc dot gnu.org 2023-07-07 10:43 ` [Bug c++/105228] [11/12/13/14 " rguenth 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-105228-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).