Patchwork [C++,testcase,committed] PR 37404

login
register
mail settings
Submitter Paolo Carlini
Date June 9, 2013, 6:26 p.m.
Message ID <51B4C8E0.2020904@oracle.com>
Download mbox | patch
Permalink /patch/250075/
State New
Headers show

Comments

Paolo Carlini - June 9, 2013, 6:26 p.m.
Hi

tested x86_64-linux, committed to mainline.

Thanks,
Paolo.

////////////////////////
2013-06-09  Paolo Carlini  <paolo.carlini@oracle.com>

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

Patch

Index: g++.dg/other/vararg-4.C
===================================================================
--- g++.dg/other/vararg-4.C	(revision 0)
+++ g++.dg/other/vararg-4.C	(working copy)
@@ -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();
+}