Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | Keith Thompson <kst-u@mib.org> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: Unexpected Difficulty with String Constant Concatenation |
| Date | 2011-06-02 18:06 -0700 |
| Organization | None to speak of |
| Message-ID | <lnk4d3k9ko.fsf@nuthaus.mib.org> (permalink) |
| References | <jqqcu69ug4eo4fd1b97qj75engnaogon2b@4ax.com> <8eSdnQguna-r8nvQnZ2dnUVZ_sCdnZ2d@bestweb.net> <87lixltrmp.fsf@blp.benpfaff.org> <AK-dnZWx3_nfOnrQnZ2dnUVZ_hmdnZ2d@bestweb.net> <is9b8f$bhm$1@dont-email.me> |
"J. J. Farrell" <jjf@bcs.org.uk> writes:
> Kenneth Brody wrote:
>> On 6/1/2011 12:59 PM, Ben Pfaff wrote:
>>> Kenneth Brody<kenbrody@spamcop.net> writes:
>>> [massive snippage below]
>>>
>>>> On 6/1/2011 12:45 PM, Datesfat Chicks wrote:
>>>>> c_main.c(71): error C2064: term does not evaluate to a function taking
>>>>> 305 arguments
>>>
>>>> In other words, it's a function call, with "mystring" (including the
>>>> quotes) being the function name/pointer. Obviously, a string literal
>>>> is not a function name/pointer.
>>>
>>> Any idea why the compiler thinks there should be (or, perhaps,
>>> that there are) 305 arguments?
>>
>> Perhaps it's a bug in the compiler?
>
> A feature surely? It's issuing a diagnostic, which is all that's
> required of it. The diagnostic is even correct, just not particularly
> helpful.
Violations of the language standard are not the only misbehaviors
that can reasonably be called "bugs". An error messages that
appears when it should, but that misleads the reader about the
reason for the error, indicates a bug. (In this particular case,
the term really doesn't evaluate to a function taking 305 arguments,
but that's hardly relevant.)
If you disagree, please cite the standard's definition of the word
"bug". 8-)}
--
Keith Thompson (The_Other_Keith) kst-u@mib.org <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Unexpected Difficulty with String Constant Concatenation Datesfat Chicks <datesfat.chicks@gmail.com> - 2011-06-01 12:45 -0400
Re: Unexpected Difficulty with String Constant Concatenation Billy Mays <noway@nohow.com> - 2011-06-01 12:49 -0400
Re: Unexpected Difficulty with String Constant Concatenation Datesfat Chicks <datesfat.chicks@gmail.com> - 2011-06-01 13:19 -0400
Re: Unexpected Difficulty with String Constant Concatenation blp@cs.stanford.edu (Ben Pfaff) - 2011-06-01 09:50 -0700
Re: Unexpected Difficulty with String Constant Concatenation Kenneth Brody <kenbrody@spamcop.net> - 2011-06-01 12:56 -0400
Re: Unexpected Difficulty with String Constant Concatenation blp@cs.stanford.edu (Ben Pfaff) - 2011-06-01 09:59 -0700
Re: Unexpected Difficulty with String Constant Concatenation Kenneth Brody <kenbrody@spamcop.net> - 2011-06-02 11:07 -0400
Re: Unexpected Difficulty with String Constant Concatenation Kenneth Brody <kenbrody@spamcop.net> - 2011-06-02 11:22 -0400
Re: Unexpected Difficulty with String Constant Concatenation Shao Miller <sha0.miller@gmail.com> - 2011-06-02 11:25 -0500
Re: Unexpected Difficulty with String Constant Concatenation Ben Pfaff <blp@cs.stanford.edu> - 2011-06-02 09:02 -0700
Re: Unexpected Difficulty with String Constant Concatenation Kenneth Brody <kenbrody@spamcop.net> - 2011-06-03 10:49 -0400
Re: Unexpected Difficulty with String Constant Concatenation "J. J. Farrell" <jjf@bcs.org.uk> - 2011-06-03 01:52 +0100
Re: Unexpected Difficulty with String Constant Concatenation Keith Thompson <kst-u@mib.org> - 2011-06-02 18:06 -0700
Re: Unexpected Difficulty with String Constant Concatenation Keith Thompson <kst-u@mib.org> - 2011-06-01 10:07 -0700
Re: Unexpected Difficulty with String Constant Concatenation Stephen Sprunk <stephen@sprunk.org> - 2011-06-01 13:14 -0500
csiph-web