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]

Re: gcc version 2.95.2 19991024 (release)


Thanks for your bug report. I can't reproduce the problem; 
gcc-2.95.2 on i586-pc-linux-gnu says

a.cc: In function `int main(int, char **)':
a.cc:1: too many arguments to function `int test()'
a.cc:7: at this point in file

I have to add extern "C" so this is accepted. This is not a bug in
gcc, but an extension to support header files that don't provide
proper prototypes. You can compile your code with -pedantic to have
get an error even in this case.

Regards,
Martin

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