🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #1276

incompatibility in g++ version 2.2.2

#1276
From: Dave Miller
Date: Thu, 05 Nov 1992 23:28
33 lines
1331 bytes
I've been using g++ to run through a course book on c++ from AT&T.  I've found
one incompatibility with the AT&T version.

In the course text it clearly specifies that the "=" operator does not need to
be overloaded/defined for a class to itself.  It states that because of
the compatibility with C and C's ability to assign a structure to another,
it is not necessary to do that definition.  We do have an AT&T version on
another machine here and I did verify that was true.

For example, given a class:

    class String {

    public:
	...

    private:
	char text[128];
    }

it is possible in a program to:

    String a, b;

    a = b;

without defining the operator.  This doesn't work in g++ but does in the AT&T
version.

Not a biggie, but I thought I could report it anyway.

Dave Miller
Cray Research, Inc.
Technical Details
Message-ID: <9211052328.AA09542@dagmar.cray.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!ames!agate!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!dagmar.cray.com!djm

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!ames!agate!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!dagmar.cray.com!djm
From: djm@dagmar.cray.com (Dave Miller)
Subject: incompatibility in g++ version 2.2.2
Message-ID: <9211052328.AA09542@dagmar.cray.com>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Thu, 5 Nov 1992 23:28:46 GMT
Approved: bug-gcc@prep.ai.mit.edu
Lines: 34