The 27.stringbuf.xsputn.stdcxx-515.cpp fails to compile with gcc 4.1.1 on Red Hat Enterprise Linux Server release 5 with the error below:
gcc -c -I$(TOPDIR)/include/ansi -D_RWSTDDEBUG -I$(TOPDIR)/include -I$(BUILDDIR)/include -I$(TOPDIR)/tests/include -pedantic -nostdinc++ -g -W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long -Wcast-align $(TOPDIR)/tests/regress/27.stringbuf.xsputn.stdcxx-515.cpp
$(TOPDIR)/tests/regress/27.stringbuf.xsputn.stdcxx-515.cpp: In function 'int main()':
$(TOPDIR)/tests/regress/27.stringbuf.xsputn.stdcxx-515.cpp:33: error: 'size_t' was not declared in this scope
$(TOPDIR)/tests/regress/27.stringbuf.xsputn.stdcxx-515.cpp:33: error: expected `;' before 'i'
$(TOPDIR)/tests/regress/27.stringbuf.xsputn.stdcxx-515.cpp:33: error: 'i' was not declared in this scope
gmake: *** [27.stringbuf.xsputn.stdcxx-515.o] Error 1
aCC -c -D_RWSTDDEBUG -I$(TOPDIR)/include -I$(BUILDDIR)/include -I$(TOPDIR)/tests/include -AA -g +d +DD64 +w +W392 +W655 +W684 +W818 +W819 +W849 $(TOPDIR)/tests/regress/27.stringbuf.xsputn.stdcxx-515.cpp
Error 419: "$(TOPDIR)/tests/regress/27.stringbuf.xsputn.stdcxx-515.cpp", line 33 # 'size_t' is used as a type, but has not been defined as a type.
for (size_t i = 1; i <= 1024; ++i) {
^^^^^^
Warning (suggestion) 887: "$(TOPDIR)/tests/regress/27.stringbuf.xsputn.stdcxx-515.cpp", line 35 # Type 'int' is smaller than type 'unsigned long', unwanted widening in value may result.
std::string s (i, 'a');
^
gmake: *** [27.stringbuf.xsputn.stdcxx-515.o] Error 2