public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/2045
@ 2001-04-07  8:16 Jamie Painter
  0 siblings, 0 replies; 6+ messages in thread
From: Jamie Painter @ 2001-04-07  8:16 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

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

From: Jamie Painter <jamie@turbolabs.com>
To: neil@gcc.gnu.org
Cc: gcc-gnats@gcc.gnu.org, nobody@gcc.gnu.org
Subject: Re: c++/2045
Date: Sat, 07 Apr 2001 09:22:01 -0600

 neil@gcc.gnu.org wrote:
 
 > Synopsis: no warning when a non void function falls through without a return value; bad code generated.
 > 
 > State-Changed-From-To: feedback->closed
 > State-Changed-By: neil
 > State-Changed-When: Sat Apr  7 02:57:01 2001
 > State-Changed-Why:
 >     Valid attachment not forthcoming.
 > 
 > http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=2045&database=gcc
 
 
 Apologizes.  I could find no way (via guest access) to add an attachment 
 to an existing bug report.
 
 Here is a simple source file that demonstrates the problem.  function() 
 should return a value but does not.  -Wall doesn't warn about this (with 
 2.95.2).  The return value, which was never constructed,  gets 
 destructed anyway, causing an assert in this code sample.
 
 #include <assert.h>
 static int count =0;
 
 class obj
 {
 public:
   obj() {  count++;  }
   obj(const obj &o) { count++;  }
   ~obj() {  assert( count > 0);  count--;  }
 };
 
 obj function( obj ) { }
 
 int main(int argc, char *argv[])
 {
   function( obj() );
   return 0;
 }
 


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

* Re: c++/2045
@ 2001-05-24 23:16 rodrigc
  0 siblings, 0 replies; 6+ messages in thread
From: rodrigc @ 2001-05-24 23:16 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

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

From: rodrigc@gcc.gnu.org
To: gcc-gnats@gcc.gnu.org, jamie@turbolabs.com, nathan@gcc.gnu.org,
  neil@gcc.gnu.org, lerdsuwa@gcc.gnu.org, rodrigc@gcc.gnu.org,
  nobody@gcc.gnu.org
Cc:  
Subject: Re: c++/2045
Date: 25 May 2001 06:15:47 -0000

 Synopsis: no warning when a non void function falls through without a return value; bad code generated.
 
 State-Changed-From-To: feedback->closed
 State-Changed-By: rodrigc
 State-Changed-When: Thu May 24 23:15:46 2001
 State-Changed-Why:
     I attached the new t1.cpp file submitted.
     Not a bug.
     I tried this with gcc version 3.0 20010507 (prerelease)
     and Compaq Tru64 C++ compiler.  
     It is correct for the compiler to issue a warning and
     generate code in this particular case.
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=2045&database=gcc


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

* Re: c++/2045
@ 2001-04-27  7:56 nathan
  0 siblings, 0 replies; 6+ messages in thread
From: nathan @ 2001-04-27  7:56 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

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

From: nathan@gcc.gnu.org
To: gcc-gnats@gcc.gnu.org, jamie@turbolabs.com, nobody@gcc.gnu.org
Cc:  
Subject: Re: c++/2045
Date: 27 Apr 2001 14:50:20 -0000

 Synopsis: no warning when a non void function falls through without a return value; bad code generated.
 
 State-Changed-From-To: open->feedback
 State-Changed-By: nathan
 State-Changed-When: Fri Apr 27 10:50:20 2001
 State-Changed-Why:
     there appears to be no code in the sample submitted
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=2045&database=gcc


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

* Re: c++/2045
@ 2001-04-07  8:36 neil
  0 siblings, 0 replies; 6+ messages in thread
From: neil @ 2001-04-07  8:36 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

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

From: neil@gcc.gnu.org
To: gcc-gnats@gcc.gnu.org, jamie@turbolabs.com, nobody@gcc.gnu.org
Cc:  
Subject: Re: c++/2045
Date: 7 Apr 2001 15:27:38 -0000

 Synopsis: no warning when a non void function falls through without a return value; bad code generated.
 
 State-Changed-From-To: closed->open
 State-Changed-By: neil
 State-Changed-When: Sat Apr  7 08:27:38 2001
 State-Changed-Why:
     Example provided.
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=2045&database=gcc


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

* Re: c++/2045
@ 2001-04-07  3:06 neil
  0 siblings, 0 replies; 6+ messages in thread
From: neil @ 2001-04-07  3:06 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

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

From: neil@gcc.gnu.org
To: gcc-gnats@gcc.gnu.org, jamie@turbolabs.com, nobody@gcc.gnu.org
Cc:  
Subject: Re: c++/2045
Date: 7 Apr 2001 09:57:01 -0000

 Synopsis: no warning when a non void function falls through without a return value; bad code generated.
 
 State-Changed-From-To: feedback->closed
 State-Changed-By: neil
 State-Changed-When: Sat Apr  7 02:57:01 2001
 State-Changed-Why:
     Valid attachment not forthcoming.
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=2045&database=gcc


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

* Re: c++/2045
@ 2001-03-14  4:27 lerdsuwa
  0 siblings, 0 replies; 6+ messages in thread
From: lerdsuwa @ 2001-03-14  4:27 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

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

From: lerdsuwa@gcc.gnu.org
To: gcc-gnats@gcc.gnu.org, jamie@turbolabs.com, nobody@gcc.gnu.org
Cc:  
Subject: Re: c++/2045
Date: 14 Mar 2001 12:18:14 -0000

 Synopsis: no warning when a non void function falls through without a return value; bad code generated.
 
 State-Changed-From-To: open->feedback
 State-Changed-By: lerdsuwa
 State-Changed-When: Wed Mar 14 04:18:14 2001
 State-Changed-Why:
     The preprocess source file you provided is damaged.
     Please resubmit the test case again.
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=2045&database=gcc


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

end of thread, other threads:[~2001-05-24 23:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-07  8:16 c++/2045 Jamie Painter
  -- strict thread matches above, loose matches on Subject: below --
2001-05-24 23:16 c++/2045 rodrigc
2001-04-27  7:56 c++/2045 nathan
2001-04-07  8:36 c++/2045 neil
2001-04-07  3:06 c++/2045 neil
2001-03-14  4:27 c++/2045 lerdsuwa

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