Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: 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 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.