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]

gcc version 2.95.2 19991024 (release)


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


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