Commit b9cf471a by Paolo Carlini Committed by Paolo Carlini

re PR c++/77655 (ICE on invalid c++ code on x86_64-linux-gnu (internal compiler…

re PR c++/77655 (ICE on invalid c++ code on x86_64-linux-gnu (internal compiler error: Segmentation fault (program cc1plus)))

2018-02-22  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/77655
	* g++.dg/cpp0x/pr77655.C: New.

From-SVN: r257896
parent 25c1b6cb
2018-02-22 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/77655
* g++.dg/cpp0x/pr77655.C: New.
2018-02-22 Jakub Jelinek <jakub@redhat.com>
PR c++/84496
......
// PR c++/77655
// { dg-do compile { target c++11 } }
template <class F> void g(F);
template <class... A>
auto h(A &&... a) -> decltype(g(0, g<decltype(a)>(a)...)) { // { dg-error "no matching" }
h([] {}); // { dg-error "no matching" }
}
int main() {
h();
return 0;
}
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