🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Igor Metz Thu, 03 Aug 1989 09:42
assignement of a value to a const
#326
Author: Igor Metz
Date: Thu, 03 Aug 1989 09:42
17 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads