]> gcc.gnu.org Git - gcc.git/commitdiff
re PR c++/67238 ([C++11][C++14]cc1plus crash for nested decltype expression in parame...
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 26 Nov 2015 18:43:47 +0000 (18:43 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 26 Nov 2015 18:43:47 +0000 (18:43 +0000)
2015-11-26  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/67238
* g++.dg/cpp0x/pr67238.C: New.

From-SVN: r230981

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/pr67238.C [new file with mode: 0644]

index df920a0fa485233c37478c6d4b92a3d98715b7e1..d84b6a87ebba380f88d523335ba03940f17a9b46 100644 (file)
@@ -1,3 +1,8 @@
+2015-11-26  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/67238
+       * g++.dg/cpp0x/pr67238.C: New.
+
 2015-11-26  Martin Sebor  <msebor@redhat.com>
 
        * g++.dg/pr67876.C: Remove duplicate content.
diff --git a/gcc/testsuite/g++.dg/cpp0x/pr67238.C b/gcc/testsuite/g++.dg/cpp0x/pr67238.C
new file mode 100644 (file)
index 0000000..606a21e
--- /dev/null
@@ -0,0 +1,20 @@
+// { dg-do compile { target c++11 } }
+// { dg-options "-g" }
+
+template<class F, class... A>
+void
+g(F&&, A&&...)
+{}
+
+template<class... A>
+auto
+h(A&&... a) -> decltype(g(0, g<decltype(a)>(a)...))
+{
+  return g([]{}, a...);
+}
+
+int
+main()
+{
+  h();
+}
This page took 0.087664 seconds and 5 git commands to generate.