This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/70570] Assembler error "symbol already defined" from nested lambdas and function-static variable


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;
  ^

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]