public inbox for libstdc++@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jonathan Wakely <jwakely@redhat.com>
To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org
Subject: [committed] [3/2] testsuite: Add missing C++ includes to tests [PR101646]
Date: Tue, 27 Jul 2021 21:38:34 +0100	[thread overview]
Message-ID: <YQBuyhoIss+6imWk@redhat.com> (raw)
In-Reply-To: <YP/5KPehgHKh8bNM@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 280 bytes --]

These tests stopped working after some libstdc++ refactoring, because
they aren't including what they use.

I committed a blank ChangeLog (I did 'git push' when I meant to push
to the compile farm, oops) so I'll fix that tomorrow.

Tested powerpc64le-linux. Committed to trunk.



[-- Attachment #2: patch.txt --]
[-- Type: text/x-patch, Size: 1206 bytes --]

commit b7195fb01fe62a313ae5f7faede698101bdb3025
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Tue Jul 27 21:29:10 2021

    testsuite: Add missing C++ includes to tests [PR101646]
    
    These tests stopped working after some libstdc++ refactoring, because
    they aren't including what they use.
    
    gcc/testsuite/ChangeLog:
    
            PR testsuite/101646
            * g++.dg/coroutines/pr99047.C:
            * g++.dg/pr71655.C:

diff --git a/gcc/testsuite/g++.dg/coroutines/pr99047.C b/gcc/testsuite/g++.dg/coroutines/pr99047.C
index 124633a08e6..05ce08567b2 100644
--- a/gcc/testsuite/g++.dg/coroutines/pr99047.C
+++ b/gcc/testsuite/g++.dg/coroutines/pr99047.C
@@ -1,4 +1,5 @@
 #include <optional>
+#include <utility>
 #include <coroutine>
 
 template <typename T>
diff --git a/gcc/testsuite/g++.dg/pr71655.C b/gcc/testsuite/g++.dg/pr71655.C
index 8ed33711c36..45943060bc5 100644
--- a/gcc/testsuite/g++.dg/pr71655.C
+++ b/gcc/testsuite/g++.dg/pr71655.C
@@ -5,6 +5,7 @@
 
 #include <functional>
 #include <valarray>
+#include <array>
 extern int var_16, le_s5, le_s6, le_s9;
 std::array<std::array<std::array<long, 8>, 4>, 24> v4;
 extern std::array<std::array<int, 48>, 18> v15;

      reply	other threads:[~2021-07-27 20:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-27 12:15 [committed] [1/2] libstdc++: Reduce header dependencies on <array> and <utility> Jonathan Wakely
2021-07-27 12:16 ` [committed] [2/2] libstdc++: Remove unnecessary uses of <utility> Jonathan Wakely
2021-07-27 20:38   ` Jonathan Wakely [this message]

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=YQBuyhoIss+6imWk@redhat.com \
    --to=jwakely@redhat.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=libstdc++@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).