* m4/cxx.m4 (BISON_TEST_FOR_WORKING_CXX_COMPILER): Check

that '#include <string>' works.
This commit is contained in:
Paul Eggert
2006-02-02 07:33:13 +00:00
parent de35dd590c
commit 8c86f0ef98
2 changed files with 4 additions and 0 deletions

View File

@@ -3,6 +3,9 @@
Work around portability problems summarized by Nelson H. F. Beebe in
<http://lists.gnu.org/archive/html/bug-bison/2005-09/msg00021.html>.
* m4/cxx.m4 (BISON_TEST_FOR_WORKING_CXX_COMPILER): Check
that '#include <string>' works.
* data/lalr1.cc (yytranslate_): No longer inline, to work around a
porting problem to g++ 3.4.3 on Darwin 7.9.0, where g++ complained
"warning: sorry: semantics of inline function static data `const

View File

@@ -29,6 +29,7 @@ AC_DEFUN([BISON_TEST_FOR_WORKING_CXX_COMPILER],
[AC_LANG_PROGRAM(
[#include <cstdlib>
#include <iostream>
#include <string>
using namespace std;],
[std::cerr << "";
cout << "";])],