public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] c++: Add testcase for DR 2392
@ 2022-11-14 10:36 Jakub Jelinek
  2022-11-15  0:02 ` Jason Merrill
  0 siblings, 1 reply; 2+ messages in thread
From: Jakub Jelinek @ 2022-11-14 10:36 UTC (permalink / raw)
  To: Jason Merrill; +Cc: gcc-patches

Hi!

Working virtually out of Baker Island.

The testcase from DR 2392 passes, so I assume we don't need to do
anything further for the DR.

Tested on x86_64-linux, ok for trunk?

2022-11-13  Jakub Jelinek  <jakub@redhat.com>

	* g++.dg/DRs/dr2392.C: Add testcase for DR 2392.

--- gcc/testsuite/g++.dg/DRs/dr2392.C.jj	2022-11-13 20:49:22.107817793 -1200
+++ gcc/testsuite/g++.dg/DRs/dr2392.C	2022-11-13 20:49:17.506880524 -1200
@@ -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 ()]);

	Jakub


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] c++: Add testcase for DR 2392
  2022-11-14 10:36 [PATCH] c++: Add testcase for DR 2392 Jakub Jelinek
@ 2022-11-15  0:02 ` Jason Merrill
  0 siblings, 0 replies; 2+ messages in thread
From: Jason Merrill @ 2022-11-15  0:02 UTC (permalink / raw)
  To: Jakub Jelinek; +Cc: gcc-patches

On 11/14/22 00:36, Jakub Jelinek wrote:
> Hi!
> 
> Working virtually out of Baker Island.
> 
> The testcase from DR 2392 passes, so I assume we don't need to do
> anything further for the DR.
> 
> Tested on x86_64-linux, ok for trunk?

OK.

> 2022-11-13  Jakub Jelinek  <jakub@redhat.com>
> 
> 	* g++.dg/DRs/dr2392.C: Add testcase for DR 2392.
> 
> --- gcc/testsuite/g++.dg/DRs/dr2392.C.jj	2022-11-13 20:49:22.107817793 -1200
> +++ gcc/testsuite/g++.dg/DRs/dr2392.C	2022-11-13 20:49:17.506880524 -1200
> @@ -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 ()]);
> 
> 	Jakub
> 


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-11-15  0:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-14 10:36 [PATCH] c++: Add testcase for DR 2392 Jakub Jelinek
2022-11-15  0:02 ` Jason Merrill

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).