re PR c++/64931 (ICE on function with deduced return type and input is instantiated...
authorPaolo Carlini <paolo.carlini@oracle.com>
Mon, 16 Oct 2017 14:21:17 +0000 (14:21 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 16 Oct 2017 14:21:17 +0000 (14:21 +0000)
2017-10-16  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/64931
* g++.dg/cpp1y/auto-fn43.C: New.

From-SVN: r253788

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/auto-fn43.C [new file with mode: 0644]

index 3464275a77b8c8d8c3bd963d4c9a7d993cd70f9d..c47464e1e9425efd197fe18350e6e4ef8fa1fbef 100644 (file)
@@ -1,3 +1,8 @@
+2017-10-16  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/64931
+       * g++.dg/cpp1y/auto-fn43.C: New.
+
 2017-10-16  Wilco Dijkstra  <wdijkstr@arm.com>
 
        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 (file)
index 0000000..7256ecb
--- /dev/null
@@ -0,0 +1,13 @@
+// PR c++/64931
+// { dg-do compile { target c++14 } }
+
+template<typename T>
+struct S {
+  T data[32];
+};
+
+auto
+foo (S<int> & x)
+{
+  return x;
+}