This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: gcc version 2.95.2 19991024 (release)
- To: pagarg at hss dot hns dot com
- Subject: Re: gcc version 2.95.2 19991024 (release)
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Fri, 7 Jul 2000 17:40:03 +0200
- CC: gcc-bugs at gcc dot gnu dot org
- References: <3965AEAE.54C5AA1D@hss.hns.com>
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