public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [C++ testcase, committed] PR 37404
@ 2013-06-09 18:26 Paolo Carlini
  0 siblings, 0 replies; only message in thread
From: Paolo Carlini @ 2013-06-09 18:26 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 90 bytes --]

Hi

tested x86_64-linux, committed to mainline.

Thanks,
Paolo.

////////////////////////

[-- Attachment #2: CL_37404 --]
[-- Type: text/plain, Size: 102 bytes --]

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

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

[-- Attachment #3: patch_37404 --]
[-- Type: text/plain, Size: 471 bytes --]

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();
+}

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-06-09 18:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-09 18:26 [C++ testcase, committed] PR 37404 Paolo Carlini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).