From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 31AF93858D35; Tue, 30 Jun 2020 17:59:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 31AF93858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1593539990; bh=iskWa6jVZoViUn2QmymOTN269dHpU12RxSXFIz3Usdk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=sB2tn42apvm/soQBV7NS1Xr9sZ5BOCShhBZ4wwNV35mvPt3Gyvz4atRh2kGKNvN2r dWSJ8EU0mHh13BwVpEY5W+3204itQBc9uLds8P3Y/3s/76LOCM69kX4AUgm9IkawV/ U7r9slkrNoHKclCYPVHqX0EjUZBJNPV+quBc5ZpA= From: "dje at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/96008] cpp1y/lambda-generic-69078-1.C nonnull warning and ICE Date: Tue, 30 Jun 2020 17:59:50 +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.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dje at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: DUPLICATE 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: Tue, 30 Jun 2020 17:59:50 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96008 --- Comment #3 from David Edelsohn --- msebor: the warning is working correctly but the IL the C++ front end emits doesn't look right: AFAICS, it creates a function object for the lambda and calls its operator() with a null this pointer: ; Function static decltype (((const main()::*)0)->operator()(static_cast(main::._anon_0::_FUN::) ...)) main()::::_FUN(auto:1 ...) [with auto:1 =3D {int}; decltype (((const main()::*)0)->operator()(static_cast(main::._anon_0::_FUN::) ...)) =3D void] (null) ;; enabled by -tree-original <::operator() (0B, D.2440) >>>>>; return; The ICE is PR95984=