This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

"regression" on #include <strstream>


Hi,

this error didn't occur last time I update-d egcs-1.1 prerelease:
(so it changed within the last two weeks?).

----------------------------------strstr.cc:---------------------------------
#include <strstream>

main() {}
-----------------------------------------------------------------------------

~/tmp>g++ -v strstr.cc
Reading specs from /usr/local/egcs-cvs/lib/gcc-lib/i686-pc-linux-gnu/egcs-2.91.53/specs
gcc version egcs-2.91.53 19980812 (gcc2 ss-980609 experimental)
 /usr/local/egcs-cvs/lib/gcc-lib/i686-pc-linux-gnu/egcs-2.91.53/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=91 -D__ELF__ -Dunix -Dlinux -D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem(posix) -D__EXCEPTIONS -Asystem(unix) -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -Di686 -Dpentiumpro -D__i686 -D__i686__ -D__pentiumpro -D__pentiumpro__ strstr.cc /tmp/ccfAFKz5.ii
GNU CPP version egcs-2.91.53 19980812 (gcc2 ss-980609 experimental) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/egcs-cvs/include/g++
 /usr/local/include
 /usr/local/egcs-cvs/i686-pc-linux-gnu/include
 /usr/local/egcs-cvs/lib/gcc-lib/i686-pc-linux-gnu/egcs-2.91.53/include
 /usr/include
End of search list.
 /usr/local/egcs-cvs/lib/gcc-lib/i686-pc-linux-gnu/egcs-2.91.53/cc1plus /tmp/ccfAFKz5.ii -quiet -dumpbase strstr.cc -version -o /tmp/ccOdOjg1.s
GNU C++ version egcs-2.91.53 19980812 (gcc2 ss-980609 experimental) (i686-pc-linux-gnu) compiled by GNU C version egcs-2.91.53 19980812 (gcc2 ss-980609 experimental).
In file included from /usr/local/egcs-cvs/include/g++/strstream.h:33,
                 from /usr/local/egcs-cvs/include/g++/strstream:6,
                 from strstr.cc:1:
/usr/local/egcs-cvs/include/g++/strfile.h:31: syntax error before `('
/usr/local/egcs-cvs/include/g++/strfile.h:32: syntax error before `('
/usr/local/egcs-cvs/include/g++/strfile.h:36: syntax error before `;'
/usr/local/egcs-cvs/include/g++/strfile.h:37: syntax error before `;'
In file included from /usr/local/egcs-cvs/include/g++/strstream:6,
                 from strstr.cc:1:
/usr/local/egcs-cvs/include/g++/strstream.h:41: `_IO_alloc_type' was not declared in this scope
/usr/local/egcs-cvs/include/g++/strstream.h:41: parse error before `,'
/usr/local/egcs-cvs/include/g++/strstream.h: In method `void strstreambuf::freeze(int = 1)':
/usr/local/egcs-cvs/include/g++/strstream.h:70: `struct _IO_str_fields' has no member named `_allocate_buffer'
/usr/local/egcs-cvs/include/g++/strstream.h:70: `_IO_alloc_type' undeclared (first use this function)
/usr/local/egcs-cvs/include/g++/strstream.h:70: (Each undeclared identifier is reported only once
/usr/local/egcs-cvs/include/g++/strstream.h:70: for each function it appears in.)
/usr/local/egcs-cvs/include/g++/strstream.h:70: parse error before `0'


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]