Bug report (fwd)

Abhishek Sharma-RollNo.2000-1 abhishek@gdit.iiit.net
Wed Apr 11 09:09:00 GMT 2001


Hi ,
We ( Abhishek Sharma & Mukul Bansal ) believe that we have found a bug in
the gcc compiler (RedHat linux 7). The bug was found while developing a
chess program . The necessary header files as well as the simplified main
program are attached .You are kindly requested to run the program and
inform us as to what the problem might be .

Problem : The header files mate1.h and mate2.h are identical except that
in file mate2.h , array n is being copied to array m and then array m
is being used to perform the calculations .In file mate1 , array n is
being used directly . However , mate1.h and mate2.h give different outputs
when included , which should not be the case .

NOTE : mainprog1.c uses mate1.h while mainprog2.c uses mate2.h .

Thank you,
waiting for your reply ,

abhishek@gdit.iiit.net
mukul@gdit.iiit.net
 


More information about the Gcc-bugs mailing list