mirror of git://gcc.gnu.org/git/gcc.git
re PR c++/70570 (Assembler error "symbol already defined" from nested lambdas and function-static variable)
2017-10-02 Paolo Carlini <paolo.carlini@oracle.com> PR c++/70570 * g++.dg/cpp1y/lambda-generic-70570.C: New. From-SVN: r253370
This commit is contained in:
parent
70c894ea64
commit
5aab83d53f
|
|
@ -1,3 +1,8 @@
|
|||
2017-10-02 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
PR c++/70570
|
||||
* g++.dg/cpp1y/lambda-generic-70570.C: New.
|
||||
|
||||
2017-10-02 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
PR c++/79590
|
||||
|
|
|
|||
|
|
@ -0,0 +1,16 @@
|
|||
// PR c++/70570
|
||||
// { dg-do assemble { target c++14 } }
|
||||
|
||||
template<typename T> void foo(T f) {
|
||||
f(1);
|
||||
}
|
||||
|
||||
int main() {
|
||||
static const int x = 42;
|
||||
foo([](auto y){
|
||||
x;
|
||||
[](){
|
||||
x;
|
||||
};
|
||||
});
|
||||
}
|
||||
Loading…
Reference in New Issue