Article View: gnu.g++.bug
Article #326assignement of a value to a const
From: Igor Metz
Date: Thu, 03 Aug 1989 09:42
Date: Thu, 03 Aug 1989 09:42
17 lines
858 bytes
858 bytes
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
Technical Details
Message-ID:
<835*metz@iam.unibe.ch>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!gatech!tut.cis.ohio-state.edu!iam.unibe.ch!metzShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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