From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6B8223836017; Mon, 12 Jul 2021 08:30:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6B8223836017 From: "avi@cloudius-systems.com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/101420] ICE in build_special_member_call, at cp/call.c:10179 Date: Mon, 12 Jul 2021 08:30:57 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 11.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: avi@cloudius-systems.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: Message-ID: In-Reply-To: References: 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, 12 Jul 2021 08:30:57 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D101420 --- Comment #10 from Avi Kivity --- Reproduces on trunk: #7 0x0000000000b439af in cp_build_modify_expr (loc=3D1376651745, lhs=3D0x7f0c55c12c60, modifycode=3D, rhs=3D0x7f0c55e63ee0, complain=3D) at ../../gcc/gcc/cp/typeck.c:8919 8919 error_at (loc, "array used as initializer"); 8914 /* This routine is used for both initialization and assignment. 8915 Make sure the diagnostic message differentiates the context. */ 8916 if (complain & tf_error) 8917 { 8918 if (modifycode =3D=3D INIT_EXPR) 8919 error_at (loc, "array used as initializer"); 8920 else 8921 error_at (loc, "invalid array assignment"); 8922 } 8923 return error_mark_node;=