This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++17] Implement N3928 - Extending static_assert
- From: Paolo Carlini <paolo dot carlini at oracle dot com>
- To: Ed Smith-Rowland <3dw4rd at verizon dot net>, Jason Merrill <jason at redhat dot com>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 4 Aug 2015 18:10:29 +0200
- Subject: Re: [C++17] Implement N3928 - Extending static_assert
- Authentication-results: sourceware.org; auth=none
- References: <55453092 dot 5050501 at verizon dot net> <555CA818 dot 7020301 at redhat dot com> <557EF7AF dot 4080009 at redhat dot com> <557F5C53 dot 2090009 at verizon dot net> <558182C8 dot 4070204 at redhat dot com> <5581B436 dot 6060402 at verizon dot net> <5581C912 dot 6050704 at redhat dot com> <558ACD9D dot 2010507 at verizon dot net>
Hi,
On 06/24/2015 05:32 PM, Ed Smith-Rowland wrote:
Index: testsuite/g++.dg/cpp1z/static_assert-nomsg.C
===================================================================
--- testsuite/g++.dg/cpp1z/static_assert-nomsg.C (revision 0)
+++ testsuite/g++.dg/cpp1z/static_assert-nomsg.C (working copy)
@@ -0,0 +1,27 @@
+// { dg-do compile { target c++1z } }
As far as I can see, we can't really use this syntax in the cpp1z
directory: the testcase is effectively skipped. Indeed, we don't use it
anywhere else. I'm going to replace it with the straightforward:
// { dg-options "-std=c++1z" }
Thanks,
Paolo.