public inbox for libstdc++-cvs@sourceware.org help / color / mirror / Atom feed
From: "Franथईois Dumont" <fdumont@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r11-6699] libstdc++: Implement N3644 for _GLIBCXX_DEBUG iterators Date: Thu, 14 Jan 2021 21:44:03 +0000 (GMT) [thread overview] Message-ID: <20210114214403.1F7663861000@sourceware.org> (raw) https://gcc.gnu.org/g:02e7af1122c1aae7c4c764aaa078f72a54645c06 commit r11-6699-g02e7af1122c1aae7c4c764aaa078f72a54645c06 Author: François Dumont <fdumont@gcc.gnu.org> Date: Thu Jan 14 22:41:23 2021 +0100 libstdc++: Implement N3644 for _GLIBCXX_DEBUG iterators libstdc++-v3/ChangeLog: * testsuite/23_containers/deque/debug/98466.cc: Make it pre-C++11 compliant. Diff: --- libstdc++-v3/testsuite/23_containers/deque/debug/98466.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libstdc++-v3/testsuite/23_containers/deque/debug/98466.cc b/libstdc++-v3/testsuite/23_containers/deque/debug/98466.cc index 720977e5622..c2d7933747e 100644 --- a/libstdc++-v3/testsuite/23_containers/deque/debug/98466.cc +++ b/libstdc++-v3/testsuite/23_containers/deque/debug/98466.cc @@ -15,7 +15,7 @@ // with this library; see the file COPYING3. If not see // <http://www.gnu.org/licenses/>. -// { dg-do run { target c++11 } } +// { dg-do run } #include <debug/deque> #include <testsuite_hooks.h> @@ -24,10 +24,12 @@ void test01() { - __gnu_debug::deque<int>::iterator it{}; + typedef typename __gnu_debug::deque<int>::iterator It; + It it = It(); VERIFY( it == it ); - __gnu_debug::deque<int>::const_iterator cit{}; + typedef typename __gnu_debug::deque<int>::const_iterator Cit; + Cit cit = Cit(); VERIFY( cit == cit ); }
reply other threads:[~2021-01-14 21:44 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=20210114214403.1F7663861000@sourceware.org \ --to=fdumont@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: linkBe 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).