From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 84248 invoked by alias); 12 Oct 2015 08:55:56 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 84195 invoked by uid 55); 12 Oct 2015 08:55:52 -0000 From: "ville at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/58566] [c++11] ICE with invalid expression in lambda body Date: Mon, 12 Oct 2015 08:55:00 -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: 4.9.0 X-Bugzilla-Keywords: error-recovery, ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: ville at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ville.voutilainen at gmail dot com 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: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-10/txt/msg00854.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58566 --- Comment #6 from ville at gcc dot gnu.org --- Author: ville Date: Mon Oct 12 08:55:19 2015 New Revision: 228706 URL: https://gcc.gnu.org/viewcvs?rev=228706&root=gcc&view=rev Log: PR c++/58566 /cp 2015-10-12 Ville Voutilainen PR c++/58566 * lambda.c (lambda_return_type): Return error_mark_node instead of void_type_node for the error cases. /testsuite 2015-10-12 Ville Voutilainen PR c++/58566 * g++.dg/cpp0x/lambda/lambda-58566.C: New. Added: trunk/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-58566.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/lambda.c trunk/gcc/testsuite/ChangeLog