🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Paul Vaughan Fri, 01 Dec 1989 16:59
inappropriate error message
#658
Author: Paul Vaughan
Date: Fri, 01 Dec 1989 16:59
21 lines
1204 bytes
	You may not consider this a bug, it's really just an
inappropriate error message.  The following program
-----------------------------


int barf() { return 1;}
foo(int = barf) {}  // line 4

main(){}
-----------------------------
when compiled with g++ 1.36.1, gives the error message

new.cc:4: sorry, not implemented: that operation not supported for default parameters

which is the error it used to give when I would use new to make a
default parameter.  Note that the error is really a type mismatch,
caused by typing "barf" instead of "barf()".  I had been thinking
there was still some kind of problem with using new to make default
parameters, but I hadn't been able to nail it down.  Now I understand
why it was so difficult to isolate.
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