Commit e5b87132 by Paolo Carlini Committed by Paolo Carlini

re PR c++/59949 (lambda expression as default argument of function template…

re PR c++/59949 (lambda expression as default argument of function template causes "already defined" messages in assembler)

2017-09-13  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/59949
	* g++.dg/cpp0x/lambda/lambda-defarg7.C: New.

From-SVN: r252079
parent 783dc739
2017-09-13 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/59949
* g++.dg/cpp0x/lambda/lambda-defarg7.C: New.
2017-09-13 Wilco Dijkstra <wdijkstr@arm.com>
* gcc.target/aarch64/vmov_n_1.c: Update dup scan-assembler.
......
// PR c++/59949
// { dg-do assemble { target c++11 } }
struct A
{
template<typename T> A(T) { }
};
template<typename T>
void
stuff(A = []{ }) { }
int main() {
stuff<int>();
stuff<unsigned int>();
}
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