diff mbox

C++ PATCH for c++/70735 (static locals and generic lambdas)

Message ID 20160525104031.GA17920@redhat.com
State New
Headers show

Commit Message

Marek Polacek May 25, 2016, 10:40 a.m. UTC
On Tue, May 24, 2016 at 04:28:51PM -0700, Mike Stump wrote:
> On May 24, 2016, at 3:35 PM, Paolo Carlini <paolo.carlini@oracle.com> wrote:
> > On 23/05/2016 21:01, Jason Merrill wrote:
> >> +// PR c++/70735
> >> +// { dg-do run { target c++1y } }
> >> +
> > [...]
> >> @@ -0,0 +1,19 @@
> >> +// PR c++/70735
> >> +// { dg-do run { target c++1y } }
> > I'm changing these c++1y to c++14.
> 
> Thanks.  :-)  
> 
> I think:
> 
>   g++.dg/pr65295.C
> 
> can be updated to use c++14 as well.  It is the last one that needs updating.

Thus the following.  (It'd be wrong to change cplusplus_1y.C it seems.)

2016-05-25  Marek Polacek  <polacek@redhat.com>

	* g++.dg/pr65295.C: Use target c++14.



	Marek

Comments

Mike Stump May 25, 2016, 6:33 p.m. UTC | #1
On May 25, 2016, at 3:40 AM, Marek Polacek <polacek@redhat.com> wrote:
> On Tue, May 24, 2016 at 04:28:51PM -0700, Mike Stump wrote:
>> I think:
>> 
>>  g++.dg/pr65295.C
>> 
>> can be updated to use c++14 as well.  It is the last one that needs updating.
> 
> Thus the following.  (It'd be wrong to change cplusplus_1y.C it seems.)

I think it is wrong to change cplusplus_1y.C.

But I do think it would be good to duplicate that test and check 14 as well.  I'll pre-appose that, someone wants to do the edit and check it and check it in.

> 2016-05-25  Marek Polacek  <polacek@redhat.com>
> 
> 	* g++.dg/pr65295.C: Use target c++14.
> 
> diff --git gcc/testsuite/g++.dg/pr65295.C gcc/testsuite/g++.dg/pr65295.C
> index c189ee1..2fa4b05 100644
> --- gcc/testsuite/g++.dg/pr65295.C
> +++ gcc/testsuite/g++.dg/pr65295.C
> @@ -1,5 +1,5 @@
> // { dg-do compile }
> -// { dg-options "-std=c++1y" }
> +// { dg-options "-std=c++14" }

Ok.
diff mbox

Patch

diff --git gcc/testsuite/g++.dg/pr65295.C gcc/testsuite/g++.dg/pr65295.C
index c189ee1..2fa4b05 100644
--- gcc/testsuite/g++.dg/pr65295.C
+++ gcc/testsuite/g++.dg/pr65295.C
@@ -1,5 +1,5 @@ 
 // { dg-do compile }
-// { dg-options "-std=c++1y" }
+// { dg-options "-std=c++14" }
 
 struct arr {
     constexpr arr() : elem() { }