Topic: help:prototype inconsistent with implementation of function
Author: J.deBoynePollard@tesco.net (Jonathan de Boyne Pollard)
Date: Wed, 19 Mar 2003 19:53:17 +0000 (UTC) Raw View
SH> (Digression: the standard only knows about "errors" not "warnings".
SH> Warnings are a QoI (Quality of Implementation) issue).
The standard_s_ only know about "diagnostic messages". A diagnostic
message can in fact be _either_ of what most C and C++ language
implementations term "error" and "warning" messages.
The distinction that the standards draw between "diagnostic" and
other messages is not identical to the distinction that most C and
C++ language implementations draw between "error" and "warning"
messsages. The latter distinction is usually that "warning" messages
allow compilation to succeed, whereas "error" messages do not. The
standards explicitly (to greater or lesser extent) allow, however,
for implementations to translate successfully even whilst issuing
"diagnostic" messages and to fail to translate without the issuance
of a "diagnostic" (since they list cases where no diagnostic is
required). There is no mapping, therefore, between the
"error"/"warning" dichotomy and the "diagnostic"/"non-diagnostic"
dichotomy.
---
[ 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.jamesd.demon.co.uk/csc/faq.html ]
Author: Jonathan de Boyne Pollard <J.deBoynePollard@tesco.net>
Date: Wed, 31 Jul 2002 15:02:44 GMT Raw View
SH> (Digression: the standard only knows about "errors" not "warnings".
SH> Warnings are a QoI (Quality of Implementation) issue).
The standard_s_ only know about "diagnostic messages". A diagnostic
message can in fact be _either_ of what most C and C++ language
implementations term "error" and "warning" messages.
The distinction that the standards draw between "diagnostic" and
other messages is not identical to the distinction that most C and
C++ language implementations draw between "error" and "warning"
messsages. The latter distinction is usually that "warning" messages
allow compilation to succeed, whereas "error" messages do not. The
standards explicitly (to greater or lesser extent) allow, however,
for implementations to translate successfully even whilst issuing
"diagnostic" messages and to fail to translate without the issuance
of a "diagnostic" (since they list cases where no diagnostic is
required). There is no mapping, therefore, between the
"error"/"warning" dichotomy and the "diagnostic"/"non-diagnostic"
dichotomy.
---
[ 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.jamesd.demon.co.uk/csc/faq.html ]