GNU Compiler bug ?
Ulrich Broniecki
UBroniecki@alcatel.de
Thu Jul 1 07:26:00 GMT 1999
Hello,
using GNU gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release) on a
Sparc with Solaris 2.7 and Rogue Wave Tools.h++ v0707 UNIX there
appeared a problem that seems to be a bug. It is reported as 'parse
error' but I do not find an error in the code nor a matching restriction
in the GNU manual.
Appended you'll find
- the piece of code containing the problem (tmp.cps)
- the output from translation with -E option but without blanks
(tmp.cpp)
- the used sequence of commands and the error messages (tmp.lst)
Regards
--
Ulrich Broniecki Alcatel SEL AG, Dept. ZFZ/B
Phone : +49-30-7002-4217 Colditzstr. 34-36
Fax : +49-30-7002-3595 12099 Berlin, Germany
// from ComPortal.cpp
#include <rw/toolpro/portstrm.h>
class ComPortal
{
private:
RWPortalStreambuf streambuf_;
inline streambuf* getStreambuf(void)
{
return &streambuf_;
}
void initForSend(int);
};
void ComPortal::initForSend(int size)
{
RWbostream(getStreambuf()) << size;
}
More information about the Gcc-bugs
mailing list