public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: bmello@us.ibm.com
To: gcc-gnats@gcc.gnu.org
Subject: c++/7679: The compiler crashes wen a right parentesis is missing
Date: Wed, 21 Aug 2002 17:43:00 -0000	[thread overview]
Message-ID: <200208220001.g7M01l902758@localhost.localdomain> (raw)


>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:


             reply	other threads:[~2002-08-22  0:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-21 17:43 bmello [this message]
2002-09-13 15:11 nathan
2002-09-29  8:06 Pop Sébastian
2002-10-23  0:48 mmitchel
2002-10-23 14:57 mmitchel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200208220001.g7M01l902758@localhost.localdomain \
    --to=bmello@us.ibm.com \
    --cc=gcc-gnats@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).