C/C++の宿題片付けます 138代目

このエントリーをはてなブックマークに追加
939デフォルトの名無しさん
>>938
ISO/IEC 9899TC2
5.1.2.2.1 Program startup
1 The function called at program startup is named main. The implementation declares no
prototype for this function. It shall be defined with a return type of int and with no parameters:
int main(void) { /* ... */ }
(中略)
or equivalent;
or in some other implementation-defined manner
とある。この "or equivalent" の記述を根拠に、int main(void) に ISO/IEC9899 6.7.5.3 14 の項目を適用してもいいかどうか、が問題となっている。
私見では、main() も function の一種であることが 5.1.2.2.1 で明言されている以上、6.7.5.3 14 も適用できるはずであるが、いかがだろうか?.