bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] maint: fix an erroneous include


From: Theophile Ranquet
Subject: [PATCH] maint: fix an erroneous include
Date: Wed, 3 Oct 2012 15:26:56 +0000

This fixes test 130 of the testsuite.

* NEWS: Document this.
* data/location.cc: Include <iostream> rather than <iosfwd>.
---
 NEWS             | 4 +++-
 data/location.cc | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/NEWS b/NEWS
index ad5f738..4bfb464 100644
--- a/NEWS
+++ b/NEWS
@@ -4,7 +4,9 @@ GNU Bison NEWS
 
 ** Bug fixes
 
-  Bugs in the test suite have been fixed.
+  Bugs in the test suite have been fixed. This includes a bug in test 130
+  which was due to a bad include: <iosfwd> was causing trouble, <iostream>
+  seems to be a safer bet.
 
   Some errors in translations have been addressed, and --help now directs
   users to the appropriate place to report them.
diff --git a/data/location.cc b/data/location.cc
index b7383d6..0673f4c 100644
--- a/data/location.cc
+++ b/data/location.cc
@@ -30,7 +30,7 @@ b4_copyright([Positions for Bison parsers in C++],
 ]b4_cpp_guard_open([b4_dir_prefix[]position.hh])[
 
 # include <algorithm> // std::max
-# include <iosfwd>
+# include <iostream>
 # include <string>
 
 ]b4_null_define[
-- 
1.7.11.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]