5.1.1.3 Diagnostics

Previous Table of Contents

144 A conforming implementation shall produce at least one diagnostic message (identified in an implementation-defined manner) if a preprocessing translation unit or translation unit contains a violation of any syntax rule or constraint, even if the behavior is also explicitly specified as undefined or implementation-defined.

145 Diagnostic messages need not be produced in other circumstances.8)

146 EXAMPLE An implementation shall issue a diagnostic for the translation unit:


        char i;
        int i;

because in those cases where wording in this International Standard describes the behavior for a construct as being both a constraint error and resulting in undefined behavior, the constraint error shall be diagnosed.

Next

Created at: 2005-06-29 02:18:52 The text from WG14/N1124 is copyright © ISO