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
This commit is contained in:
Paolo Carlini 2017-09-13 11:57:56 +00:00 committed by Paolo Carlini
parent 783dc7392a
commit e5b87132fe
2 changed files with 21 additions and 0 deletions

View file

@ -1,3 +1,8 @@
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.

View file

@ -0,0 +1,16 @@
// 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>();
}