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
This commit is contained in:
parent
83cc5c7a2f
commit
57fbfd5a55
@ -1,3 +1,8 @@
|
||||
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.
|
||||
|
20
gcc/testsuite/g++.dg/cpp0x/pr67238.C
Normal file
20
gcc/testsuite/g++.dg/cpp0x/pr67238.C
Normal file
@ -0,0 +1,20 @@
|
||||
// { 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();
|
||||
}
|
Loading…
Reference in New Issue
Block a user