re PR c++/37404 (ICE on va_arg and template deduction)
authorPaolo Carlini <paolo.carlini@oracle.com>
Sun, 9 Jun 2013 18:24:39 +0000 (18:24 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sun, 9 Jun 2013 18:24:39 +0000 (18:24 +0000)
2013-06-09  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/37404
* g++.dg/other/vararg-4.C: New.

From-SVN: r199869

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/vararg-4.C [new file with mode: 0644]

index b8fe362..0628bfa 100644 (file)
@@ -1,3 +1,8 @@
+2013-06-09  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/37404
+       * g++.dg/other/vararg-4.C: New.
+
 2013-06-08  Vladimir Makarov  <vmakarov@redhat.com>
 
        PR rtl-optimization/57559
diff --git a/gcc/testsuite/g++.dg/other/vararg-4.C b/gcc/testsuite/g++.dg/other/vararg-4.C
new file mode 100644 (file)
index 0000000..e242cfc
--- /dev/null
@@ -0,0 +1,12 @@
+// PR c++/37404
+
+typedef __builtin_va_list __gnuc_va_list;
+typedef __gnuc_va_list va_list;
+
+template <class> struct S { static void foo () { } };
+template <class T, int N>
+struct S<T [N]> { static void foo () { T(); } };
+
+int main () {
+  S<va_list>::foo();
+}