- 论坛徽章:
- 0
|
kzl0629 发表于 2012-06-22 17:50 ![]()
回复 347# hbmhalley
非让我说你胡搅蛮缠是吧。这是我给你贴的第三遍,就算不对你也给个说法好吧
4. 还能有什么?还有这些啊:
hbmhalley 发表于 2012-06-22 10:13
这么个破问题怎么都贴开标准了
那我也贴
这么个破问题怎么都贴开标准了
那我也贴
5 A strictly conforming program shall use only those features of the language and library
specified in this International Standard.2) It shall not produce output dependent on any
unspecified, undefined, or implementation-defined behavior, and shall not exceed any
minimum implementation limit.
6 The two forms of conforming implementation are hosted and freestanding. A conforming
hosted implementation shall accept any strictly conforming program. A conforming
freestanding implementation shall accept any strictly conforming program that does not
use complex types and in which the use of the features specified in the library clause
(clause 7) is confined to the contents of the standard headers <float.h>,
<iso646.h>, <limits.h>, <stdarg.h>, <stdbool.h>, <stddef.h>, and
<stdint.h>. A conforming implementation may have extensions (including additional
library functions), provided they do not alter the behavior of any strictly conforming
program.3)
int main (void) {register struct T {int a[10000];} v;}
复制代码
这算strictly conforming program不?
如果你承认上面的是strictly conforming program,那么
编译器拒绝接受上面的代码就既不是conforming hosted implementation也不是conforming freestanding implementation,
因此不是conforming implementation。
这也是标准所要求的,但你的编译器没遵守。
格式不好,你自己往前翻吧。给你说了多少遍你就当没看见 |
|