Topic: legal program causing diagnostics - shouldn't this be forbidden in the standard ?


Author: "Piotr Dobrogost" <pbc@poczta.onet.pl>
Date: Thu, 28 Jun 2001 17:46:46 GMT
Raw View
:Shankar Unni wrote:
:James Dennett wrote:
:
:> [...] a compiler [...] which terminated
:> successful, error-free runs by printing "None of the errors
:> were found."  A good warning, if ever I saw one.
:
:Or, you could even go so far as the Metrowerks 5 C++ compiler, which
:emits a message at the end of a successful compilation saying
:
:   ERROR: 0 errors
:

Wow, I can't believe this.
Is it really that way ?
Shouldn't the standard define two types of diagnostics - one for violations
of the standard and second for compiler specific ones and demand they are
distinc ? To prohibit such behaviour like this given above the standard
should also define that legal program can't cause first type of diagnostics.
I think this is minimum the standard should give users of C++ in this
subject.

Piotr Dobrogost


---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.research.att.com/~austern/csc/faq.html                ]





Author: Barry Margolin <barmar@genuity.net>
Date: Thu, 28 Jun 2001 21:30:30 GMT
Raw View
In article <9hfhjt$g65$1@news.tpi.pl>,
Piotr Dobrogost <pbc@poczta.onet.pl> wrote:
>:Shankar Unni wrote:
>:James Dennett wrote:
>:
>:> [...] a compiler [...] which terminated
>:> successful, error-free runs by printing "None of the errors
>:> were found."  A good warning, if ever I saw one.
>:
>:Or, you could even go so far as the Metrowerks 5 C++ compiler, which
>:emits a message at the end of a successful compilation saying
>:
>:   ERROR: 0 errors
>:
>
>Wow, I can't believe this.
>Is it really that way ?
>Shouldn't the standard define two types of diagnostics - one for violations
>of the standard and second for compiler specific ones and demand they are
>distinc ? To prohibit such behaviour like this given above the standard
>should also define that legal program can't cause first type of diagnostics.
>I think this is minimum the standard should give users of C++ in this
>subject.

Compiler user interface issues like this are much better left to market
forces than standards bodies.

--
Barry Margolin, barmar@genuity.net
Genuity, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.research.att.com/~austern/csc/faq.html                ]