This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/66481] New: Implicit lambda capture by reference of variable named "closure" causes crash
- From: "mxawng at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 10 Jun 2015 01:07:47 +0000
- Subject: [Bug c++/66481] New: Implicit lambda capture by reference of variable named "closure" causes crash
- Auto-submitted: auto-generated
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.