This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/70570] Assembler error "symbol already defined" from nested lambdas and function-static variable
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 12 Apr 2016 09:46:48 +0000
- Subject: [Bug c++/70570] Assembler error "symbol already defined" from nested lambdas and function-static variable
- Auto-submitted: auto-generated
- References: <bug-70570-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70570
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |wrong-code
Status|UNCONFIRMED |NEW
Last reconfirmed| |2016-04-12
Version|unknown |5.3.0
Ever confirmed|0 |1
Known to fail| |5.3.0, 6.0
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed. GCC 4.9 complains:
> g++-4.9 t.C -std=c++14
t.C: In instantiation of âmain()::<lambda(auto:1)> [with auto:1 = int]â:
t.C:2:8: required from âvoid foo(T) [with T = main()::<lambda(auto:1)>]â
t.C:12:3: required from here
t.C:8:2: error: âxâ was not declared in this scope
x;
^