🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Compiler bug report (#2)

#105
From: Dave Lukes
Date: Mon, 17 Mar 1986 21:41
23 lines
1177 bytes
In article <261@euclid.warwick.UUCP> steve@warwick.UUCP (Steve Rumsby) writes:
>
> ....
>
>	char *const foo = "hello world";
>
>	main()
>	{
>		char *cp = foo;
>	}
>
>OUTPUT:
>	CC  const_ptr.c:
>	"const_ptr.c", line 6: error: bad initializer type char * const  for cp ( char *  expected)
>	1 error

Surely you would expect that: the erroneous line SHOULD read:
>		char *cp = (char *)foo;
-- 
		Dave Lukes. (...!inset!dave)

All opinions, philosophies, dogmas and idiosyncrasies expressed in this article
INCLUDING THIS DISCLAIMER, are solely those of the author.
Technical Details
Message-ID: <869@inset.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!mcvax!ukc!stc!inset!dave
References: <261@euclid.warwick.UUCP>

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!stc!inset!dave
From: dave@inset.UUCP (Dave Lukes)
Newsgroups: net.lang.c++
Subject: Re: Compiler bug report (#2)
Message-ID: <869@inset.UUCP>
Date: Mon, 17-Mar-86 16:41:32 EST
Article-I.D.: inset.869
Posted: Mon Mar 17 16:41:32 1986
Date-Received: Fri, 21-Mar-86 04:31:40 EST
References: <261@euclid.warwick.UUCP>
Reply-To: dave@inset.UUCP (Dave Lukes)
Distribution: net
Organization: The Instruction Set Ltd., London, UK.
Lines: 23