public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/7679: The compiler crashes wen a right parentesis is missing
@ 2002-09-13 15:11 nathan
  0 siblings, 0 replies; 5+ messages in thread
From: nathan @ 2002-09-13 15:11 UTC (permalink / raw)
  To: bmello, gcc-bugs, gcc-prs, nobody

Synopsis: The compiler crashes wen a right parentesis is missing

State-Changed-From-To: open->analyzed
State-Changed-By: nathan
State-Changed-When: Fri Sep 13 15:11:57 2002
State-Changed-Why:
    3.2 & cvs go into an infinite loop

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7679


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: c++/7679: The compiler crashes wen a right parentesis is missing
@ 2002-10-23 14:57 mmitchel
  0 siblings, 0 replies; 5+ messages in thread
From: mmitchel @ 2002-10-23 14:57 UTC (permalink / raw)
  To: bmello, gcc-bugs, gcc-prs, mmitchel

Synopsis: The compiler crashes wen a right parentesis is missing

State-Changed-From-To: analyzed->closed
State-Changed-By: mmitchel
State-Changed-When: Wed Oct 23 14:57:53 2002
State-Changed-Why:
    Fixed in GCC 3.2.1.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7679


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: c++/7679: The compiler crashes wen a right parentesis is missing
@ 2002-10-23  0:48 mmitchel
  0 siblings, 0 replies; 5+ messages in thread
From: mmitchel @ 2002-10-23  0:48 UTC (permalink / raw)
  To: bmello, gcc-bugs, gcc-prs, mmitchel, nobody

Synopsis: The compiler crashes wen a right parentesis is missing

Responsible-Changed-From-To: unassigned->mmitchel
Responsible-Changed-By: mmitchel
Responsible-Changed-When: Wed Oct 23 00:48:33 2002
Responsible-Changed-Why:
    Working on a fix.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7679


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: c++/7679: The compiler crashes wen a right parentesis is missing
@ 2002-09-29  8:06 Pop Sébastian
  0 siblings, 0 replies; 5+ messages in thread
From: Pop Sébastian @ 2002-09-29  8:06 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR c++/7679; it has been noted by GNATS.

From: =?iso-8859-1?Q?Pop_S=E9bastian?= <pop@gauvain.u-strasbg.fr>
To: nathan@gcc.gnu.org, bmello@us.ibm.com, gcc-bugs@gcc.gnu.org,
	gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org
Cc:  
Subject: Re: c++/7679: The compiler crashes wen a right parentesis is missing
Date: Sun, 29 Sep 2002 17:03:40 +0200

 On Fri, Sep 13, 2002 at 10:11:57PM -0000, nathan@gcc.gnu.org wrote:
 > Synopsis: The compiler crashes wen a right parentesis is missing
 > 
 > State-Changed-From-To: open->analyzed
 > State-Changed-By: nathan
 > State-Changed-When: Fri Sep 13 15:11:57 2002
 > State-Changed-Why:
 >     3.2 & cvs go into an infinite loop
 > 
 > http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7679
 
 
 Tested with 3 gcc versions:
 
 seb@myp233:~/test/cp$ gcc-2.95 -v
 Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs
 gcc version 2.95.4 20011002 (Debian prerelease)
 
 seb@myp233:~/test/cp$ gcc-3.0 -v
 Reading specs from /usr/lib/gcc-lib/i386-linux/3.0.4/specs
 Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,objc --prefix=/usr --infodir=/share/info --mandir=/share/man --enable-shared --with-gnu-as --with-gnu-ld --with-system-zlib --enable-long-long --enable-nls --without-included-gettext --disable-checking --enable-threads=posix --enable-java-gc=boehm --with-cpp-install-dir=bin --enable-objc-gc i386-linux
 Thread model: posix
 gcc version 3.0.4
 
 seb@myp233:~/test/cp$ gcc-3.2 -v
 Reading specs from /usr/lib/gcc-lib/i386-linux/3.2.1/specs
 Configured with: /mnt/data/gcc-3.1/gcc-3.2-3.2.1ds2/src/configure -v --enable-languages=c,c++,java,f77,proto,objc,ada --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.2 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-java-gc=boehm --enable-objc-gc i386-linux
 Thread model: posix
 gcc version 3.2.1 20020924 (Debian prerelease)
 
 
 Results for the original bug example:
 
 seb@myp233:~/test/cp$ gcc-2.95 -c pr7679.cc
 pr7679.cc: In method `double receptors::occupancy(int)':
 pr7679.cc:14: parse error before `;'
 Stops shortly.
 
 seb@myp233:~/test/cp$ gcc-3.0 -c pr7679.cc
 pr7679.cc: In member function `double receptors::occupancy(int)':
 pr7679.cc:14: parse error before `;' token
 Loops indefinitely.
 
 seb@myp233:~/test/cp$ gcc-3.2 -c pr7679.cc
 pr7679.cc: In member function `double receptors::occupancy(int)':
 pr7679.cc:14: parse error before `;' token
 Loops indefinitely.
 
 
 
 Also tested:
 
 struct f
 {
   int oo()
   {
     return (2;
   }
 };
 
 Slightly simpler to analyse than the original bug example,
 and produces the same infinite loop.
 
 
 Note that gcc-3.2 stops correctly when it gets only the function declaration:
 
   int oo()
   {
     return (2;
   }
 
 


^ permalink raw reply	[flat|nested] 5+ messages in thread

* c++/7679: The compiler crashes wen a right parentesis is missing
@ 2002-08-21 17:43 bmello
  0 siblings, 0 replies; 5+ messages in thread
From: bmello @ 2002-08-21 17:43 UTC (permalink / raw)
  To: gcc-gnats


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-10-23 21:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-13 15:11 c++/7679: The compiler crashes wen a right parentesis is missing nathan
  -- strict thread matches above, loose matches on Subject: below --
2002-10-23 14:57 mmitchel
2002-10-23  0:48 mmitchel
2002-09-29  8:06 Pop Sébastian
2002-08-21 17:43 bmello

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).