void, VOID, C and C++

后端 未结 3 1909
清酒与你
清酒与你 2020-12-02 00:15

I have the following code:

typedef void VOID;
int f(void);
int g(VOID);

which compiles just fine in C (using gcc 4.3.2 on Fedora 10). The s

3条回答
  •  心在旅途
    2020-12-02 00:29

    gcc bugs. Edit: since it wasn't clear enough, what I meant was gcc 4.3.2 was compiling it due to bugs. See #32364 and #9278.

提交回复
热议问题