public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-4047] c++: Add testcase for DR 2392
@ 2022-11-15 7:18 Jakub Jelinek
0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2022-11-15 7:18 UTC (permalink / raw)
To: gcc-cvs
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 ()]);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-11-15 7:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-15 7:18 [gcc r13-4047] c++: Add testcase for DR 2392 Jakub Jelinek
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).