This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

invalid use of void expression (current CVS versions)


Hi,

unless I miss a lot, a C-compiler should compile

typedef void VOID;

VOID cleanup(int);

int main() {

  cleanup(0);
}

But current CVS-version of gcc generate a fatal error

TEST.c: In function `main':
TEST.c:8: invalid use of void expression

This is on IRIX 6.5.

Thanks for looking into it,

Helmut Jarausch


Lehrstuhl fuer Numerische Mathematik
Institute of Technology, RWTH Aachen
D 52056 Aachen, Germany


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]