From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 64ECA3870840; Mon, 22 Jun 2020 15:01:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 64ECA3870840 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1592838084; bh=RfDTO0IrKRgqHS940P5HbdJzF085tra8nOAu0h5g+Bs=; h=From:To:Subject:Date:From; b=iKSjBxs/GNfOiSE7xmX9PdqjrSF7p3/IAlZyxvlkXjjdGlfk+zvaob5OI54a3Vvry 8h4cb9oCOQ9G9iaGJ7tvB9pSXyNf0QYETxg1B+Ugds71YfekVVADr7DTGVgxuY5IOj EPPM+NOrKddYA33IrPmxnyMZ8FCWNJTtR8ELxG8Q= From: "haoxintu at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/95820] New: ICE in splice_late_return_type, at cp/pt.c:29034 Date: Mon, 22 Jun 2020 15:01:24 +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: 11.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: haoxintu at gmail dot com 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 keywords 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jun 2020 15:01:24 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95820 Bug ID: 95820 Summary: ICE in splice_late_return_type, at cp/pt.c:29034 Product: gcc Version: 11.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- This case bug.cc, reduced by C-Reduce, crashed GCC. $cat bug.cc constexpr (*a)()->bool, $g++ -w -fpermissive small.cc bug.cc:1:19: internal compiler error: in splice_late_return_type, at cp/pt.c:29034 1 | constexpr (*a)()->bool, | ^~~~ 0x5cd1f6 splice_late_return_type(tree_node*, tree_node*) ../../gcc/cp/pt.c:29034 0x67db9a grokdeclarator(cp_declarator const*, cp_decl_specifier_seq*, decl_context, int, tree_node**) ../../gcc/cp/decl.c:12154 0x684228 start_decl(cp_declarator const*, cp_decl_specifier_seq*, int, tree_node*, tree_node*, tree_node**) ../../gcc/cp/decl.c:5231 0x70c8ce cp_parser_init_declarator ../../gcc/cp/parser.c:20817 0x6efcc2 cp_parser_simple_declaration ../../gcc/cp/parser.c:13785 0x7159c6 cp_parser_declaration ../../gcc/cp/parser.c:13484 0x7160b4 cp_parser_translation_unit ../../gcc/cp/parser.c:4761 0x7160b4 c_parse_file() ../../gcc/cp/parser.c:44034 0x7de74b c_common_parse_file() ../../gcc/c-family/c-opts.c:1190 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. My GCC version is $g++ --version g++ (GCC) 11.0.0 20200605 (experimental) Copyright (C) 2020 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.=