From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2ED223857C4B; Wed, 26 Oct 2022 18:34:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2ED223857C4B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666809263; bh=Su64MflX4EMO7GEYka+wWLZrb7xOVVY9UqtUFOkWZWU=; h=From:To:Subject:Date:From; b=Vh8In1VagmenYKrrooR1ex7F//TKc6n4OvXiKezpZc4EUfpA4ATPB3uOVv8PruTZx +8VZzuMrg4Np3hiwu3sma6d7h3cmkx3xgkxuUhGMbK/XAmd+iJ1avhKv5Lx25JnNwk Fg2JMR/l6LVou7rB4Cr3lwNKtqXAwHo5v4GAT91k= From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107422] New: [12/13 Regression] ICE in lvalue_kind, at cp/tree.cc:293 Date: Wed, 26 Oct 2022 18:34:22 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gscfq@t-online.de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107422 Bug ID: 107422 Summary: [12/13 Regression] ICE in lvalue_kind, at cp/tree.cc:293 Product: gcc Version: 13.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 r12 before 20210502 : (gcc configured with --enable-checking=3Dyes) $ cat z1.cc typedef decltype (__builtin_trap) t; template struct s; union { template using b =3D decltype (t () (s {})); template b get (); }; // } u; $ g++-13-20221023 -c z1.cc -fno-pretty-templates z1.cc:5:26: error: 'template using::b =3D decltype (t()(s{}))' invalid; an anonymous union may only have public non-static = data members [-fpermissive] 5 | template using b =3D decltype (t () (s {})); | ^ ' Segmentation fault 7 | }; // } u; | ^ 0x11d0e4f crash_signal ../../gcc/toplev.cc:314 0xb15510 lvalue_kind(tree_node const*) ../../gcc/cp/tree.cc:293 0xae9fa7 finish_decltype_type(tree_node*, bool, int) ../../gcc/cp/semantics.cc:11488 0xb271af strip_typedefs(tree_node*, bool*, unsigned int) ../../gcc/cp/tree.cc:1788 0x91ae45 dump_type ../../gcc/cp/error.cc:538 0x91a6fc dump_type_prefix ../../gcc/cp/error.cc:981 0x92578d dump_function_decl ../../gcc/cp/error.cc:1804 0x9287f6 decl_to_string ../../gcc/cp/error.cc:3297 0x9287f6 cp_printer ../../gcc/cp/error.cc:4471 0x2202490 pp_format(pretty_printer*, text_info*) ../../gcc/pretty-print.cc:1475 0x21e13c0 diagnostic_report_diagnostic(diagnostic_context*, diagnostic_info= *) ../../gcc/diagnostic.cc:1548 0x21e1b0a diagnostic_impl ../../gcc/diagnostic.cc:1712 0x21e224a permerror(unsigned int, char const*, ...) ../../gcc/diagnostic.cc:1979 0x8c30e7 fixup_anonymous_aggr(tree_node*) ../../gcc/cp/decl.cc:5194 0x8ea67c shadow_tag(cp_decl_specifier_seq*) ../../gcc/cp/decl.cc:5498 0xa011c9 cp_parser_simple_declaration ../../gcc/cp/parser.cc:15422 0xa35d9b cp_parser_declaration ../../gcc/cp/parser.cc:14970 0xa368b8 cp_parser_translation_unit ../../gcc/cp/parser.cc:5076 0xa368b8 c_parse_file() ../../gcc/cp/parser.cc:48860 0xbcef21 c_common_parse_file() ../../gcc/c-family/c-opts.cc:1247=