From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7512 invoked by alias); 10 Jun 2015 01:07:52 -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 7488 invoked by uid 48); 10 Jun 2015 01:07:48 -0000 From: "mxawng at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/66481] New: Implicit lambda capture by reference of variable named "closure" causes crash Date: Wed, 10 Jun 2015 01:07:00 -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: 4.8.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: mxawng at gmail dot 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: 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-06/txt/msg00878.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66481 Bug ID: 66481 Summary: Implicit lambda capture by reference of variable named "closure" causes crash Product: gcc Version: 4.8.2 Status: UNCONFIRMED Severity: minor Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mxawng at gmail dot com Target Milestone: --- Created attachment 35736 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35736&action=edit preprocessed source of repro As title. The parser crashes when g++ is asked to compile a source file in which a variable named "closure" is implicitly captured by a lambda. == Version == my-favorite-server:~$ g++ --version g++ (GCC) 4.8.2 20140120 (Red Hat 4.8.2-15) Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.