From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mukul Bansal To: gcc-bugs@gcc.gnu.org Subject: Bug report Date: Fri, 11 May 2001 02:52:00 -0000 Message-id: X-SW-Source: 2001-05/msg00272.html List-Id: 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 >>From guillaume.lemaitre@fr.thalesgroup.com Fri May 11 04:36:00 2001 From: guillaume.lemaitre@fr.thalesgroup.com To: gcc-gnats@gcc.gnu.org Cc: dinh@enseirb.fr Subject: c++/2802: internal compiler error with templates Date: Fri, 11 May 2001 04:36:00 -0000 Message-id: <20010511112700.23375.qmail@sourceware.cygnus.com> X-SW-Source: 2001-05/msg00273.html Content-length: 1628 >Number: 2802 >Category: c++ >Synopsis: internal compiler error with templates >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: rejects-legal >Submitter-Id: net >Arrival-Date: Fri May 11 04:36:00 PDT 2001 >Closed-Date: >Last-Modified: >Originator: guillaume.lemaitre@fr.thalesgroup.com >Release: gcc-2.95.3 >Organization: >Environment: debian linux >Description: problem with templates, subtypes and inheritance. be a template parent class A, a subclass B of A, and a subclass C of A inheriting in public of B, the definition of the interfaces cannot be split into three. Definitions of B and C must be all integrated in the one of A. The problem comes from two parts : template and inheritance inside of A >How-To-Repeat: g++ template.cc -c >Fix: don't know >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: text/x-c++src; name="template.cc" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="template.cc" LyogVmVyc2lvbiB0aGF0IGRvZXNuJ3Qgd29yayAqLwoKdGVtcGxhdGU8IHR5cGVuYW1lIFQgPiBj bGFzcyBBIHsKCiAgY2xhc3MgQjsKICBjbGFzcyBDOwp9OwoKdGVtcGxhdGU8IHR5cGVuYW1lIFQg PiBjbGFzcyBBPCBUID46OkIgewp9OwoKdGVtcGxhdGU8IHR5cGVuYW1lIFQgPiBjbGFzcyBBPCBU ID46OkMgOiBwdWJsaWMgQTxUPjo6QiB7Cn07CgovKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKi8KCi8qIFZlcnNpb24gdGhhdCB3b3Jr cyBidXQgbGVzcyByZWFkYWJsZSAqLwoKLyoKdGVtcGxhdGU8IHR5cGVuYW1lIFQgPiBjbGFzcyBB IHsKCiAgY2xhc3MgQiB7fTsKICBjbGFzcyBDIDogcHVibGljIEIge307Cn07CiovCg==