From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27933 invoked by alias); 22 Aug 2002 00:16:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 27906 invoked by uid 71); 22 Aug 2002 00:16:00 -0000 Resent-Date: 22 Aug 2002 00:16:00 -0000 Resent-Message-ID: <20020822001600.27905.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, bmello@us.ibm.com Received: (qmail 25025 invoked from network); 22 Aug 2002 00:06:57 -0000 Received: from unknown (HELO localhost.localdomain) (198.81.209.17) by sources.redhat.com with SMTP; 22 Aug 2002 00:06:57 -0000 Received: (from bmello@localhost) by localhost.localdomain (8.11.6/8.11.6) id g7M01l902758; Wed, 21 Aug 2002 20:01:47 -0400 Message-Id: <200208220001.g7M01l902758@localhost.localdomain> Date: Wed, 21 Aug 2002 17:43:00 -0000 From: bmello@us.ibm.com Reply-To: bmello@us.ibm.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: 3.113 Subject: c++/7679: The compiler crashes wen a right parentesis is missing X-SW-Source: 2002-08/txt/msg00448.txt.bz2 List-Id: >Number: 7679 >Category: c++ >Synopsis: The compiler crashes wen a right parentesis is missing >Confidential: no >Severity: non-critical >Priority: low >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Wed Aug 21 17:16:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Bernardo Mello >Release: 3.1 >Organization: IBM T.J. Watson Research Center >Environment: System: Linux localhost.localdomain 2.4.18-3 #1 Thu Apr 18 07:37:53 EDT 2002 i686 unknown Architecture: i686 host: i686-pc-linux-gnu build: i686-pc-linux-gnu target: i686-pc-linux-gnu configured with: /tmp/gcc-3.1/configure >Description: When I try to compile the code bellow using the command g++ teste.cpp the compiler crashes if one parentesis is missing in the end of the definition of the function double occupancy(int m). >How-To-Repeat: Compile the program below using g++. There is a missing parentesis in the end of the line {return L/(L+Ka*activity(m,1,activity())+Ki*(1-activity(m,1,activity()));} that make the compiler crash. const int n_methyl=2; const double tiny=1e-10; class receptors { public: static double C,E[n_methyl][2],Ka,Ki,L,fm[n_methyl]; double x[10]; receptors(){}; double activity() {return x[0];} double activity(int,int,double); double occupancy(int m) {return L/(L+Ka*activity(m,1,activity())+Ki*(1-activity(m,1,activity()));} double occupancy() {double s=0; for(int m=0;m!=n_methyl;m++)s+=occupancy(m)*fm[m]; return s;} double methylation() {double s=0;for(int m=0;m!=n_methyl;m++) s+=m*fm[m]; return s;} void tune_fm(double); double show(); void find_solution(double); }; >Fix: >Release-Note: >Audit-Trail: >Unformatted: