🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.lib.bug
Article #533

problems in String.h on decstation

#533
From: Othar Hansson
Date: Wed, 13 Dec 1989 19:27
33 lines
1951 bytes
I get errors in compiling libg++-1.36.0 on a decstation (dec-3100).
This could be due to a mis-compilation of G++ on the machine, but it's
peculiar that only this file would induce vomiting.  Any ideas on what
might be wrong?  The G++ (g++-1.36.2) seems to successfully compile
several thousand lines of my code, as well as genclass'ed code.

Othar Hansson
CS Division 
UC Berkeley
othar@ernie.berkeley.edu

output from Make:
-----------------

/net/guard/users/mayer/src-nasa/libg++/g++-include/String.h: In method StrTmp::StrTmp (struct StrRep *):
In file included from String.cc:27:
/net/guard/users/mayer/src-nasa/libg++/g++-include/String.h:413: member `rep' comes from base class needing constructor
/net/guard/users/mayer/src-nasa/libg++/g++-include/String.h: In method StrTmp::StrTmp (class String &):
/net/guard/users/mayer/src-nasa/libg++/g++-include/String.h:415: member `rep' comes from base class needing constructor
/net/guard/users/mayer/src-nasa/libg++/g++-include/String.h: In method StrTmp::StrTmp (class StrTmp &):
/net/guard/users/mayer/src-nasa/libg++/g++-include/String.h:417: member `rep' comes from base class needing constructor
make[1]: *** [String.o] Error 1
make: *** [src/libg++.a] Error 1

offending lines from String.h:
------------------------------

inline StrTmp::StrTmp(StrRep* r) :  rep(r) {}

inline StrTmp::StrTmp(String& x) :rep(x.rep) { x.rep = &_nilStrRep; }

inline StrTmp::StrTmp(StrTmp& x) :rep(x.rep) { x.rep = &_nilStrRep; }
Technical Details
Message-ID: <8912131927.AA22598@ernie.Berkeley.EDU>
Path: arc1-ca.pugleaf.net!utzoo!telly!philmtl!uunet!bu-cs!lll-winken!brutus.cs.uiuc.edu!samsung!cs.utexas.edu!tut.cis.ohio-state.edu!ERNIE.BERKELEY.EDU!othar

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!philmtl!uunet!bu-cs!lll-winken!brutus.cs.uiuc.edu!samsung!cs.utexas.edu!tut.cis.ohio-state.edu!ERNIE.BERKELEY.EDU!othar
From: othar@ERNIE.BERKELEY.EDU (Othar Hansson)
Newsgroups: gnu.g++.lib.bug
Subject: problems in String.h on decstation
Message-ID: <8912131927.AA22598@ernie.Berkeley.EDU>
Date: 13 Dec 89 19:27:18 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 33