From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 75206383E826; Wed, 3 Jun 2020 16:46:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 75206383E826 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1591202786; bh=vtbGrrGUSsW+ciMHhfSUHva8J+LIiTsKn6Q9s/tcHnE=; h=From:To:Subject:Date:From; b=MfCgNTJpEtkID2UzFi3wkK2KOyJA0qao2Cv3HiQ8l9O1RYyy3UHXqLMbNJVFJEgdS Hiz5abwfGQNI1A18Jr9PENd8P+ZGqo9zu2K2dks3sFlemk/q06Pu33BywNNLeiRANY 9DIiTDN6vsigMyGFrXOF3wK++cUh0Tnxnr9yvv1Q= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/95508] New: [10/11 Regression] ICE on unexpected expression implicit_conv_expr since r10-7096 Date: Wed, 03 Jun 2020 16:46:26 +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: jakub at gcc dot gnu.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: Wed, 03 Jun 2020 16:46:26 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95508 Bug ID: 95508 Summary: [10/11 Regression] ICE on unexpected expression implicit_conv_expr since r10-7096 Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jakub at gcc dot gnu.org Target Milestone: --- Since r10-7096-gd417b4f5414d9076300ab41974a14424f722688c the following test= case ICEs: template struct A; template struct B { operator int () { return 0; } }; template <> struct A : B {}; struct D { template int foo () { return e[f]; } int e[6]; A f; }; rh1837006.C: In member function =E2=80=98int D::foo()=E2=80=99: rh1837006.C:11:26: internal compiler error: unexpected expression =E2=80=98(int)((D*)this)->D::f=E2=80=99 of kind implicit_conv_expr 11 | int foo () { return e[f]; } | ^ 0xaf874b cxx_eval_constant_expression ../../gcc/cp/constexpr.c:6541 0xaf8cef cxx_eval_outermost_constant_expr ../../gcc/cp/constexpr.c:6746 0xafd0db maybe_constant_value(tree_node*, tree_node*, bool) ../../gcc/cp/constexpr.c:7019 0xcc3e00 cp_build_array_ref(unsigned int, tree_node*, tree_node*, int) ../../gcc/cp/typeck.c:3568 ...=