From b9cf471ac15405ca7f622043876312418f78c14a Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Thu, 22 Feb 2018 10:44:04 +0000 Subject: [PATCH] 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 PR c++/77655 * g++.dg/cpp0x/pr77655.C: New. From-SVN: r257896 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/cpp0x/pr77655.C | 13 +++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 gcc/testsuite/g++.dg/cpp0x/pr77655.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 161d5237040..b4b8f179fc2 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2018-02-22 Paolo Carlini + + PR c++/77655 + * g++.dg/cpp0x/pr77655.C: New. + 2018-02-22 Jakub Jelinek PR c++/84496 diff --git a/gcc/testsuite/g++.dg/cpp0x/pr77655.C b/gcc/testsuite/g++.dg/cpp0x/pr77655.C new file mode 100644 index 00000000000..ab2e942cbb8 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/pr77655.C @@ -0,0 +1,13 @@ +// PR c++/77655 +// { dg-do compile { target c++11 } } + +template void g(F); +template +auto h(A &&... a) -> decltype(g(0, g(a)...)) { // { dg-error "no matching" } + h([] {}); // { dg-error "no matching" } +} + +int main() { + h(); + return 0; +} -- 2.30.2