Commit 13745643 by Paolo Carlini Committed by Paolo Carlini

re PR c++/53741 (ICE on lambda calling static template member function with…

re PR c++/53741 (ICE on lambda calling static template member function with explicit template argument specification)

2012-10-10  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/53741
	* g++.dg/cpp0x/lambda/lambda-ice9.C: New.

From-SVN: r192298
parent e80f7f17
2012-10-10 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/53741
* g++.dg/cpp0x/lambda/lambda-ice9.C: New.
2012-10-10 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/50478
* g++.dg/cpp0x/initlist67.C: New.
......
// PR c++/53741
// { dg-do compile { target c++11 } }
struct X
{
template <class T> static void bar() {}
template <class T> void foo(T p)
{
[&] { bar<T>(); };
}
};
int main()
{
X x;
x.foo(3);
}
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