Path: utzoo!attcan!uunet!smsdpg!seg From: seg@smsdpg.uu.net (Scott Garfinkle) Newsgroups: comp.sys.ibm.pc Subject: Another msc 5.1 bug Message-ID: <139@smsdpg.uu.net> Date: 3 Jan 89 18:18:49 GMT Reply-To: seg@smsdpg.UUCP (Scott Garfinkle) Organization: SMS Data Products Group, Inc. Lines: 18 I just ran across a neat new (?) bug in MSC5.1: #line 1 "foo.c" fun() { extern int * const a; int * const b = a; b[0] = 1; } produces "foo.c(5) : error C2166: lval specifies 'const' object" In other words, you can't use a const pointer to a non-const chunk of memory. Scott E. Garfinkle SMS Data Products Group, Inc. smsdpg!seg@uunet.uu.net