Commit 5aab83d5 by Paolo Carlini Committed by Paolo Carlini

re PR c++/70570 (Assembler error "symbol already defined" from nested lambdas…

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
parent 70c894ea
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
* g++.dg/cpp1y/lambda-generic-noexcept1.C: New.
......
// 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;
};
});
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment