Commit 57fbfd5a by Paolo Carlini Committed by Paolo Carlini

re PR c++/67238 ([C++11][C++14]cc1plus crash for nested decltype expression in…

re PR c++/67238 ([C++11][C++14]cc1plus crash for nested decltype expression in parameter pack in trailing return type when '-g' enabled)

2015-11-26  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/67238
	* g++.dg/cpp0x/pr67238.C: New.

From-SVN: r230981
parent 83cc5c7a
2015-11-26 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/67238
* g++.dg/cpp0x/pr67238.C: New.
2015-11-26 Martin Sebor <msebor@redhat.com>
* g++.dg/pr67876.C: Remove duplicate content.
......
// { dg-do compile { target c++11 } }
// { dg-options "-g" }
template<class F, class... A>
void
g(F&&, A&&...)
{}
template<class... A>
auto
h(A&&... a) -> decltype(g(0, g<decltype(a)>(a)...))
{
return g([]{}, a...);
}
int
main()
{
h();
}
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