This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
gcc version 2.95.2 19991024 (release)
- To: gcc-bugs at gcc dot gnu dot org
- Subject: gcc version 2.95.2 19991024 (release)
- From: Pankaj Garg <pagarg at hss dot hns dot com>
- Date: Fri, 07 Jul 2000 15:49:26 +0530
The following code get compiled without giving any warnings or errors.
and cause runtime crash, if "test" is implemented in a "library".
Though VC++ 6.0 and CC gives error "Too many argument" for the same
code.
/***************************/
extern int test();
int main(int argc, char* argv[])
{
int j= 0,k=1;
/* here is the bug */
test(j, k);
/* here is the bug */
return 0;
}
/**************************/
This problem occurs in localtime_r() function if u pass a single
argument in this.
Rgds,
Pankaj Garg
pankaj_k-garg@usa.net