public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-7204] libstdc++: Fix FAIL: 20_util/temporary_buffer.cc for C++14
@ 2022-02-11 22:15 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2022-02-11 22:15 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:9a56779dbc4e2d9c15be8d31e36f2f59be7331a8

commit r12-7204-g9a56779dbc4e2d9c15be8d31e36f2f59be7331a8
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Thu Feb 10 17:34:58 2022 +0000

    libstdc++: Fix FAIL: 20_util/temporary_buffer.cc for C++14
    
    The std::get_temporary_buffer function is deprecated since C++17, but
    the test was expecting a warning for C++14 as well.
    
    libstdc++-v3/ChangeLog:
    
            * testsuite/20_util/temporary_buffer.cc: Fix dg-warning target
            selector.

Diff:
---
 libstdc++-v3/testsuite/20_util/temporary_buffer.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libstdc++-v3/testsuite/20_util/temporary_buffer.cc b/libstdc++-v3/testsuite/20_util/temporary_buffer.cc
index 3f3625961b6..54b0edb00ee 100644
--- a/libstdc++-v3/testsuite/20_util/temporary_buffer.cc
+++ b/libstdc++-v3/testsuite/20_util/temporary_buffer.cc
@@ -27,7 +27,7 @@ struct junk { char j[12]; };
 int main(void)
 {
   typedef std::pair<junk*, std::ptrdiff_t> pair_type;
-  pair_type results = std::get_temporary_buffer<junk>(5); // { dg-warning "deprecated" "" { target c++14 } }
+  pair_type results = std::get_temporary_buffer<junk>(5); // { dg-warning "deprecated" "" { target c++17 } }
 
   if (results.second != 0)
   {


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-02-11 22:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-11 22:15 [gcc r12-7204] libstdc++: Fix FAIL: 20_util/temporary_buffer.cc for C++14 Jonathan Wakely

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