[Bug c++/78840] New: ICE with const variables in templates implicitly captured by nested lambda expressions

2016-12-16 Thread myoga.murase at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: myoga.murase at gmail dot com Target Milestone: --- The following valid C++ code causes an internal compiler error in recent versions of GCC from 5.1.0 to 7.0.0

[Bug c++/65885] New: lambda expressions in templates fail to capture `const int' variables

2015-04-25 Thread myoga.murase at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: myoga.murase at gmail dot com The following c++11 code does not compile with gcc-5.1.0 while it is fine with gcc-4.9.2, and gcc-4.8.3. [user@host gcc]$ cat lambda.cpp int gvar=1