From bb6cb6e3e2ea0e2f8c263f933792d639af4be3d5 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Wed, 9 May 2018 19:46:47 +0000 Subject: [PATCH] re PR c++/85713 (ICE in dependent_type_p, at cp/pt.c:24582 on valid code) 2018-05-09 Paolo Carlini PR c++/85713 * g++.dg/cpp1y/lambda-generic-85713.C: New. From-SVN: r260092 --- gcc/testsuite/ChangeLog | 8 +++++++- gcc/testsuite/g++.dg/cpp1y/lambda-generic-85713.C | 4 ++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 gcc/testsuite/g++.dg/cpp1y/lambda-generic-85713.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 316415901a9..45327ac3ad7 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,4 +1,10 @@ -2018-05-09 Carl Love +2018-05-09 Paolo Carlini + + PR c++/85713 + * g++.dg/cpp1y/lambda-generic-85713.C: New. + +2018-05-09 Carl Love + * gcc.target/powerpc/builtins-8-runnable.c: New builtin test file. 2018-05-09 Paolo Carlini diff --git a/gcc/testsuite/g++.dg/cpp1y/lambda-generic-85713.C b/gcc/testsuite/g++.dg/cpp1y/lambda-generic-85713.C new file mode 100644 index 00000000000..56564d4dc9c --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp1y/lambda-generic-85713.C @@ -0,0 +1,4 @@ +// PR c++/85713 +// { dg-do compile { target c++14 } } + +auto l3 = [](auto v, auto (&array) [5]) -> int { return v + array[0]; }; -- 2.30.2