Red Hat Bugzilla – Bug 55778
flex isn't gcc-3 compatible
Last modified: 2008-05-01 11:38:01 EDT
Description of Problem:
Output of the C++ version of Flex is not compatible with G++ 3.
Version-Release number of selected component (if applicable):
Create a C++ lexer. The output will contain:
this causes barfage for g++-3
In file included from /usr/include/FlexLexer.h:47,
/usr/include/g++-v3/backward/iostream.h:36: using directive `istream'
introduced ambiguous type `istream'
lexer.ll: In member function `virtual int My_lily_lexer::yylex()':
lexer.ll:497: cannot convert `std::istream*' to `istream*' in assignment
lexer.ll: In member function `void yyFlexLexer::yy_load_buffer_state()':
lexer.ll:1020: cannot convert `istream*' to `std::istream*' in assignment
lexer.ll: In member function `void
lexer.ll:1070: cannot convert `std::istream*' to `istream*' in assignment
the fix is to replace
It's fixe in flex-2.5.4a-17. You willl find it in next rawhide release.