[Bug c++/70570] Assembler error "symbol already defined" from nested lambdas and function-static variable
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Apr 12 09:47:00 GMT 2016
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;
^
More information about the Gcc-bugs
mailing list