aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMartin Sebor <msebor@redhat.com>2018-02-27 23:29:51 +0000
committerMartin Sebor <msebor@gcc.gnu.org>2018-02-27 16:29:51 -0700
commit2211eff6594f079dd741be7850b012ac43948746 (patch)
tree9091058671b3e8900903e52392ac91d720a13c62 /gcc
parentd4cfd486ebe3fadb7a67c53c24843770a1d8ba72 (diff)
downloadgcc-2211eff6594f079dd741be7850b012ac43948746.zip
gcc-2211eff6594f079dd741be7850b012ac43948746.tar.gz
gcc-2211eff6594f079dd741be7850b012ac43948746.tar.bz2
Avoid including <string> directly.
From-SVN: r258046
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/pt.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 9b4dd03..e5f9829 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,5 +1,9 @@
2018-02-27 Martin Sebor <msebor@redhat.com>
+ * pt.c: Avoid including <string> directly.
+
+2018-02-27 Martin Sebor <msebor@redhat.com>
+
PR c++/83871
PR c++/83503
* cp-tree.h (warn_spec_missing_attributes): New function.
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index ae777db..23eb2db 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -24,8 +24,8 @@ along with GCC; see the file COPYING3. If not see
all methods must be provided in header files; can't use a source
file that contains only the method templates and "just win". */
-#include <string>
#include "config.h"
+#define INCLUDE_STRING
#include "system.h"
#include "coretypes.h"
#include "cp-tree.h"