From: Paolo Carlini Date: Mon, 16 Oct 2017 14:21:17 +0000 (+0000) Subject: re PR c++/64931 (ICE on function with deduced return type and input is instantiated... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=39920b043de8874e810ea7e251428f77212c8c7f;p=gcc.git re PR c++/64931 (ICE on function with deduced return type and input is instantiated template class) 2017-10-16 Paolo Carlini PR c++/64931 * g++.dg/cpp1y/auto-fn43.C: New. From-SVN: r253788 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3464275a77b..c47464e1e94 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-10-16 Paolo Carlini + + PR c++/64931 + * g++.dg/cpp1y/auto-fn43.C: New. + 2017-10-16 Wilco Dijkstra PR target/82442 diff --git a/gcc/testsuite/g++.dg/cpp1y/auto-fn43.C b/gcc/testsuite/g++.dg/cpp1y/auto-fn43.C new file mode 100644 index 00000000000..7256ecb0d01 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp1y/auto-fn43.C @@ -0,0 +1,13 @@ +// PR c++/64931 +// { dg-do compile { target c++14 } } + +template +struct S { + T data[32]; +}; + +auto +foo (S & x) +{ + return x; +}