From: Paolo Carlini <paolo.carlini@oracle.com>
To: "gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org>
Subject: [C++ testcase, committed] PR 37404
Date: Sun, 09 Jun 2013 18:26:00 -0000 [thread overview]
Message-ID: <51B4C8E0.2020904@oracle.com> (raw)
[-- 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();
+}
reply other threads:[~2013-06-09 18:26 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51B4C8E0.2020904@oracle.com \
--to=paolo.carlini@oracle.com \
--cc=gcc-patches@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).