Re: diagnostic message



santosh said:

We are given the definition of a "diagnostic message" in 3.10 of the
Standard. To quote:

3.10
1 diagnostic message
message belonging to an implementation-defined subset of the
implementation's message output

Unless I'm mistaken, (which I probably am), the definition clearly
implies that each conforming implementation must clearly distinguish
diagnostic messages from their total set of messages, and moreover
document this.

Do existing major implementations actually do this?

Yes.

I don't think they
follow the letter of the Standard in this regard.

Borland does. Microsoft does. And how about gcc? Well, kind of:
"Diagnostics consist of all the output sent to stderr by GCC." :-)

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
.



Relevant Pages

  • Re: good c compiler
    ... contents of the diagnostic message; but a message of some kind is required. ... While the standard does not say anything about the actual content ... It's irrelevant to conformance, but ... often in somewhat broken English, ...
    (comp.lang.c)
  • Re: constraint violations and compilation
    ... violation, as defined by the standard, cause compilation to halt? ... Standard does not require translation to be halted. ... It only requires a diagnostic message. ...
    (comp.lang.c)
  • Re: all errors and warnings in C
    ... AFAICT the Standard doesn't say anywhere that translation environment ... Therefore, compiler need not print anything as a diagnostic message, it ... that in order to produce a diagnostic the Standard ...
    (comp.lang.c)
  • diagnostic message
    ... We are given the definition of a "diagnostic message" in 3.10 of the ... message belonging to an implementation-defined subset of the ... follow the letter of the Standard in this regard. ...
    (comp.lang.c)
  • Re: all errors and warnings in C
    ... behaviour and constraint violation etc. ... the set "MESSAGE OUTPUT" of which diagnotic messages are a SUBSET. ... Note that F.7.2 implies more than one diagnostic message output ... manner) if a preprocessing translation unit or translation ...
    (comp.lang.c)