This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH for c++/70735 (static locals and generic lambdas)
- From: Marek Polacek <polacek at redhat dot com>
- To: Mike Stump <mikestump at comcast dot net>
- Cc: Paolo Carlini <paolo dot carlini at oracle dot com>, Jason Merrill <jason at redhat dot com>, gcc-patches List <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 25 May 2016 12:40:31 +0200
- Subject: Re: C++ PATCH for c++/70735 (static locals and generic lambdas)
- Authentication-results: sourceware.org; auth=none
- References: <6069d4f2-0d7e-2f7d-59f9-2290a532e9ac at redhat dot com> <5744D725 dot 1080405 at oracle dot com> <01788F8D-43ED-4F07-998B-B4AD2772F550 at comcast dot net>
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.
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() { }
Marek