Article View: gnu.g++.bug
Article #658inappropriate error message
From: Paul Vaughan
Date: Fri, 01 Dec 1989 16:59
Date: Fri, 01 Dec 1989 16:59
21 lines
1204 bytes
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.
Technical Details
Message-ID:
<8912011659.AA07189@puma.cad.mcc.com>Path:
arc1-ca.pugleaf.net!utzoo!telly!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!MCC.COM!vaughan%cadillac.cad.mcc.comShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!MCC.COM!vaughan%cadillac.cad.mcc.com From: vaughan%cadillac.cad.mcc.com@MCC.COM (Paul Vaughan) Newsgroups: gnu.g++.bug Subject: inappropriate error message Message-ID: <8912011659.AA07189@puma.cad.mcc.com> Date: 1 Dec 89 16:59:59 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 21