Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!gatech!tut.cis.ohio-state.edu!iam.unibe.ch!metz From: metz@iam.unibe.ch (Igor Metz) Newsgroups: gnu.g++.bug Subject: assignement of a value to a const Message-ID: <835*metz@iam.unibe.ch> Date: 3 Aug 89 09:42:29 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 17 g++ 1.35.1- will not issue an error message when a value is assigned to a const function parameter (cfront 1.2 will!): void foo (const int &i) { i = 0; } void main() { int i = 1; foo(i); } Is there a fix for this? Igor Metz X400: metz@iam.unibe.ch Institut fuer Informatik ARPA: metz%iam.unibe.ch@relay.cs.net und angewandte Mathematik UUCP: ..!uunet!mcvax!iam.unibe.ch!metz Universitaet Bern Switzerland Phone: (+41) 31 65 49 90