public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
From: Jonathan Wakely <redi@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org
Subject: [gcc r10-10215] libstdc++: Ensure test is compiled as C++17
Date: Wed, 13 Oct 2021 15:30:02 +0000 (GMT)	[thread overview]
Message-ID: <20211013153002.D645A3858419@sourceware.org> (raw)

https://gcc.gnu.org/g:5a25cb046dde7e734a066d9f335c6d29b5afb71f

commit r10-10215-g5a25cb046dde7e734a066d9f335c6d29b5afb71f
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Tue Oct 12 21:36:17 2021 +0100

    libstdc++: Ensure test is compiled as C++17
    
    This test was backported from trunk where the default is -std=gnu++17
    but for the gcc-10 branch we need to add that explicitly.
    
    libstdc++-v3/ChangeLog:
    
            * testsuite/21_strings/basic_string_view/requirements/trivially_copyable.cc:
            Use -std=gnu++17 option.

Diff:
---
 .../21_strings/basic_string_view/requirements/trivially_copyable.cc      | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/requirements/trivially_copyable.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/requirements/trivially_copyable.cc
index 3f2589c61d8..bf04587b413 100644
--- a/libstdc++-v3/testsuite/21_strings/basic_string_view/requirements/trivially_copyable.cc
+++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/requirements/trivially_copyable.cc
@@ -1,3 +1,4 @@
+// { dg-options "-std=gnu++17" }
 // { dg-do compile { target c++17 } }
 
 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2021/p2251r1.pdf


                 reply	other threads:[~2021-10-13 15:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211013153002.D645A3858419@sourceware.org \
    --to=redi@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    --cc=libstdc++-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).