请不要转载本文;请不要以任何形式重新出版,发布本文;请在下载本文 24 小时内将其删除;禁止将本文用于商业目的。
1 General [intro]1.3 Definitions [intro.defs]1.3.12 undefined behavior [defns.undefined]
| 1 综述 【介绍】1.3 定义 【介绍.定义】1.3.12 未定义行为 【定义.未定义的】
|
behavior, such as might arise upon use of an erroneous program construct or erroneous data, for which this International Standard imposes no requirements. Undefined behavior may also be expected when this International Standard omits the description of any explicit definition of behavior. [Note: permissible undefined behavior ranges from ignoring the situation completely with unpredictable result, to behaving during translation or program execution in a documented manner characteristic of the environment (with or without the issuance of a diagnostic message), to terminating a translation or execution (with the issuance of a diagnostic message). Many erroneous program constructs do not engender undefined behavior; they are required to be diagnosed. ]
| 类似错误的程序构造和错误的数据所会导致的行为,本国际标准不制定它们的规范。当本国际标准遗漏对任何具有明显定义的行为进行描述时,也将导致未定义的行为。【注:可能的未定义的行为包括完全忽略产生不可预测结果的情况,或者在翻译或程序执行时产生环境特定的,有文档描述的行为(可能同时发布出诊断消息),或者直接终止翻译或执行(并发布诊断消息)。许多错误的程序构造不会造成未定义行为,这样的程序就需要被诊断。】
|
PREV [defns.static.type] | NEXT [defns.unspecified] | 上一页 【定义.静态.类型】 | 下一页 【定义.未指明的】 |