From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A883F3938C2A; Wed, 10 Jun 2020 20:39:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A883F3938C2A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1591821558; bh=u+BzkXxrTnI4mZQ2RquSH2uVnc3hmCnE1ELs6JaAmjU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=gUyTISEB++8bKMllSGCZRVFobYwxLmY9pCwnloeZR5E+cGXC6dyxnaaQnfRNHikNM Az3yi+DEo9RWEpSIBr8QYVX8jepGEz49UpAcTiMe4+egInaAVxQEASSZwPT9gUG+BM yWAcpxXhfdLrsoGbRyBpKjT+k1/0fOGEIpfcgo5s= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/95440] [coroutines] ICE with static members in promise_type Date: Wed, 10 Jun 2020 20:39:18 +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: 10.1.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: iains at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.2 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: Wed, 10 Jun 2020 20:39:18 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95440 --- Comment #2 from CVS Commits --- The master branch has been updated by Iain D Sandoe : https://gcc.gnu.org/g:a9eec9625ea7165292958be04899b057804192fb commit r11-1184-ga9eec9625ea7165292958be04899b057804192fb Author: Iain Sandoe Date: Wed Jun 10 00:15:28 2020 +0100 coroutines: Make call argument handling more robust [PR95440] build_new_method_call is supposed to be able to handle a null arguments list pointer (when the method has no parms). There were a couple of places where uses of the argument list pointer were not defended against NULL. gcc/cp/ChangeLog: PR c++/95440 * call.c (add_candidates): Use vec_safe_length() for testing the arguments list. (build_new_method_call_1): Use vec_safe_is_empty() when checking for an empty args list. gcc/testsuite/ChangeLog: PR c++/95440 * g++.dg/coroutines/pr95440.C: New test.=