- 论坛徽章:
- 0
|
回复 276# 幻の上帝
5.1.1.3 Diagnostics
1 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. Diagnostic messages need not be produced in other circumstances.9)
9) The intent is that an implementation should identify the nature of, and where possible localize, each violation. Of course, an implementation is free to produce any number of diagnostics as long as a valid program is still correctly translated. It may also successfully translate an invalid program.
这段话哪里说implementation-defined 不产生diagnostic message 了?? 不会翻译就不来误导人
1 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. Diagnostic messages need not be produced in other circumstances
这段只是针对conforming implementation 来说的,你之前不是一直推崇conforming implementation 来噎我么,到现在你也没说出来implementation-defined是否产生诊断信息跟conforming implementation 有什么关系
The intent is that an implementation should identify the nature of, and where possible localize, each violation. Of course, an implementation is free to produce any number of diagnostics as long as a valid program is still correctly translated. It may also successfully translate an invalid program.
这段反而还说了实现应该定义the nature of each violation,然后实现可以free to produce any number of diagnostics as long as a valid program is still correctly translated,
implementation-defined 不算是implementation ?
看不懂找高人给你翻译一下,别自己YY |
|