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!warwick!steve From: steve@warwick.UUCP (Steve Rumsby) Newsgroups: net.lang.c++ Subject: Compiler bug report (#2) Message-ID: <261@euclid.warwick.UUCP> Date: Tue, 11-Mar-86 10:45:20 EST Article-I.D.: euclid.261 Posted: Tue Mar 11 10:45:20 1986 Date-Received: Sat, 15-Mar-86 18:51:41 EST Reply-To: steve@warwick.UUCP (Steve Rumsby) Distribution: net Organization: Maths Institute, Warwick University, UK Lines: 30 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: Mishandling of constant pointers. Assignment of a constant pointer to a non-constant pointer not allowed. EXAMPLE: 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 -- Steve Rumsby. ...!ukc!warwick!steve.