From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 473FE3893653; Fri, 24 Apr 2020 18:52:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 473FE3893653 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1587754367; bh=JcyP/AwjpUxTCJLyyIpTQ5zS50v3pMLliSeNwU+a6hY=; h=From:To:Subject:Date:From; b=QeOY1SXibPLSK4d4iv7fWnWlpAhDxheb/+eZGkNZgPMM17FvmONNGENoQ3Urd9AxA gDA57CSjKWREKBfIcdvlnn7gcy2OPKBAxjzRnvS016A2mlqvUPJuBRu9oNxcoNe+YD mzOhtr1TqsZZeVpxr5O3ndkxMftCQIryBGihUDVA= From: "sss@li-snyder.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/94751] New: [9/10] ICE on invalid code in maybe_instantiate_noexcept Date: Fri, 24 Apr 2020 18:52:47 +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: 10.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sss@li-snyder.org 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 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: Fri, 24 Apr 2020 18:52:47 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94751 Bug ID: 94751 Summary: [9/10] ICE on invalid code in maybe_instantiate_noexcept Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sss@li-snyder.org Target Milestone: --- hi - gcc version: gcc version 10.0.1 20200329 (experimental) (GCC)=20 ICEs on the following (invalid) input: -- x.cc ----------------------------------------------------- struct Algorithm { Algorithm( float ); }; template struct ToolWithConstants : public Algorithm { using Algorithm::Algorithm; struct Constant { Constant (int name); }; Constant c { "order" }; }; class unique_ptr {}; unique_ptr make() { return unique_ptr (new ToolWithConstants (10.5)); } ------------------------------------------------------------ like this: [sss@karma rootaccess]$ g++ -c x.cc x.cc: In function =E2=80=98unique_ptr make()=E2=80=99: x.cc:25:60: internal compiler error: Segmentation fault 25 | return unique_ptr (new ToolWithConstants (10.5)); | ^ 0xc4fe4f crash_signal /home/sss/gcc/gcc/gcc/toplev.c:328 0x7f4d24bf8ebf ??? =20=20=20=20=20=20=20 /usr/src/debug/glibc-2.29-51-g845278f2c6/signal/../sysdeps/unix/sysv/linux/= x86_64/sigaction.c:0 0x759eff maybe_instantiate_noexcept(tree_node*, int) /home/sss/gcc/gcc/gcc/cp/pt.c:25032 0x6b8388 mark_used(tree_node*, int) /home/sss/gcc/gcc/gcc/cp/decl2.c:5512 0x644892 build_over_call /home/sss/gcc/gcc/gcc/cp/call.c:9048 0x646ade build_new_method_call_1 /home/sss/gcc/gcc/gcc/cp/call.c:10338 0x647796 build_new_method_call(tree_node*, tree_node*, vec**, tree_node*, int, tree_node**, int) /home/sss/gcc/gcc/gcc/cp/call.c:10413 0x647796 build_special_member_call(tree_node*, tree_node*, vec**, tree_node*, int, int) /home/sss/gcc/gcc/gcc/cp/call.c:9814 0x6cec5f build_new_1 /home/sss/gcc/gcc/gcc/cp/init.c:3588 0x6cf9f8 build_new(unsigned int, vec**, tree_node*, tree_node*, vec**, int, int) /home/sss/gcc/gcc/gcc/cp/init.c:3905 0x729a37 cp_parser_new_expression /home/sss/gcc/gcc/gcc/cp/parser.c:8825 0x72a057 cp_parser_unary_expression /home/sss/gcc/gcc/gcc/cp/parser.c:8418 0x706b1a cp_parser_binary_expression /home/sss/gcc/gcc/gcc/cp/parser.c:9554 0x7081ce cp_parser_assignment_expression /home/sss/gcc/gcc/gcc/cp/parser.c:9859 0x70a668 cp_parser_parenthesized_expression_list /home/sss/gcc/gcc/gcc/cp/parser.c:7981 0x70ada2 cp_parser_functional_cast /home/sss/gcc/gcc/gcc/cp/parser.c:29572 0x721f24 cp_parser_postfix_expression /home/sss/gcc/gcc/gcc/cp/parser.c:7180 0x706b1a cp_parser_binary_expression /home/sss/gcc/gcc/gcc/cp/parser.c:9554 0x7081ce cp_parser_assignment_expression /home/sss/gcc/gcc/gcc/cp/parser.c:9859 0x7084e2 cp_parser_expression /home/sss/gcc/gcc/gcc/cp/parser.c:10027 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. A crash is also observed with a 20200424 version as well as gcc version 9.2.1 20190827 (Red Hat 9.2.1-1) (GCC)=20 thanks, sss=