[gnu.g++.bug] friend class bug in v1.36.0-, Sun 4, SunOS 4.0

robert@NEON.STANFORD.EDU (Robert Kennedy) (08/25/89)

The latest version of v1.36.0- seems to have a problem with the friend
class declaration semantics. The libg++ file Fix16.cc will not
compile, for example. Here is the stdio/stderr output from the
compiler:

g++ version 1.36.0-
 /import/lib/gcc-cpp -+ -v -undef -D__GNU__ -D__GNUG__ -D__GNUC__ -D__cplusplus -Dsparc -Dsun -Dunix -D__sparc__ -D__sun__ -D__unix__ Fix16.cc /tmp/cca12586.cpp
GNU CPP version 1.35.96
 /import/lib/gcc-cc1plus /tmp/cca12586.cpp -quiet -dumpbase Fix16.cc -noreg -version -o /tmp/cca12586.s
GNU C++ version 1.36.0- (sparc) compiled by GNU C version 1.35.96.
default target switches: -mfpu -mepilogue
/import/lib/g++-include/Fix16.h: In function class Fix32 operator * (class Fix16 &, class Fix16 &):
In file included from Fix16.cc:29:
/import/lib/g++-include/Fix16.h:296: constructor `Fix32::Fix32 (long int)' is private


I assume that since this source is common knowledge, I don't need to
include it here.

	-- Robert Kennedy

dl@G.OSWEGO.EDU (Doug Lea) (08/25/89)

There are a bunch of 2.0-isms in Michael's latest test releases that
cause problems in libg++ files. I'll get out a libg++ 1.36.0- for
people to try out after g++-1.36.0-'s are stable for more than a day
or two. Bear with us.

-Doug