public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Jakub Jelinek <jakub@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r13-4047] c++: Add testcase for DR 2392
Date: Tue, 15 Nov 2022 07:18:35 +0000 (GMT)	[thread overview]
Message-ID: <20221115071835.EBA46382EF36@sourceware.org> (raw)

https://gcc.gnu.org/g:7cf165de63c5d2726bba9f0809a233bd63b84842

commit r13-4047-g7cf165de63c5d2726bba9f0809a233bd63b84842
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Tue Nov 15 08:13:06 2022 +0100

    c++: Add testcase for DR 2392
    
    The testcase from DR 2392 passes, so I assume we don't need to do
    anything further for the DR.
    
    2022-11-15  Jakub Jelinek  <jakub@redhat.com>
    
            * g++.dg/DRs/dr2392.C: Add testcase for DR 2392.

Diff:
---
 gcc/testsuite/g++.dg/DRs/dr2392.C | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/gcc/testsuite/g++.dg/DRs/dr2392.C b/gcc/testsuite/g++.dg/DRs/dr2392.C
new file mode 100644
index 00000000000..e24d6a7f928
--- /dev/null
+++ b/gcc/testsuite/g++.dg/DRs/dr2392.C
@@ -0,0 +1,12 @@
+// DR 2392
+// { dg-do compile { target c++11 } }
+
+template <class T = void>
+constexpr int
+foo ()
+{
+  T t;
+  return 1;
+}
+
+using V = decltype (new int[foo ()]);

                 reply	other threads:[~2022-11-15  7:18 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=20221115071835.EBA46382EF36@sourceware.org \
    --to=jakub@gcc.gnu.org \
    --cc=gcc-cvs@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).