🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.lang.c++
Article #89

Compiler bug report (#1)

#89
From: Steve Rumsby
Date: Tue, 11 Mar 1986 15:44
38 lines
1301 bytes
This is one of a series of reports of bugs found in the C++ compiler here at
warwick. We have release 1.0 of the software.

DESCRIPTION
	Implicit type conversion doesn't work.
	Nore that the below example is a cut down version of the "tiny"
	example on page 175 of the book. That also doesn't work.

EXAMPLE

	class big {
	    int b;
	public:
	    big()	{ b = 0;}
	    operator int();
	};

	big::operator int() { return(b);}

	main()
	{
	    big b;
	    int i;

	    i = b + 1;		// Oops, doesn't work (line 15)
	    i = (int)b + 1;	// But this does
	}

OUTPUT
	CC  /tmp/x.c:
	"/tmp/x.c", line 15: error: call of b; b is a big 
	1 error
-- 

					Steve Rumsby.

				    ...!ukc!warwick!steve.
Technical Details
Message-ID: <260@euclid.warwick.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!mcvax!ukc!warwick!steve

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!mcvax!ukc!warwick!steve
From: steve@warwick.UUCP (Steve Rumsby)
Newsgroups: net.lang.c++
Subject: Compiler bug report (#1)
Message-ID: <260@euclid.warwick.UUCP>
Date: Tue, 11-Mar-86 10:44:01 EST
Article-I.D.: euclid.260
Posted: Tue Mar 11 10:44:01 1986
Date-Received: Sat, 15-Mar-86 18:50:40 EST
Reply-To: steve@warwick.UUCP (Steve Rumsby)
Distribution: net
Organization: Maths Institute, Warwick University, UK
Lines: 38