public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug objc/23381] New: [4.1 Regression] Next runtime objc exceptions are broken
@ 2005-08-13 22:33 pinskia at gcc dot gnu dot org
  2005-08-13 22:46 ` [Bug objc/23381] " pinskia at gcc dot gnu dot org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-13 22:33 UTC (permalink / raw)
  To: gcc-bugs

Take the following test (which I am about to commit to the testsuite, it is from PR 22492), we should 
not abort:
#include <objc/Object.h>
#include <stdio.h>
#include <stdlib.h>

static int made_try = 0;

int
thrower_try_body()
{
	made_try++;
        return (0);
}

static int made_finally = 0;

int
finally_body()
{
	made_finally++;
        return (0);
}

int
thrower()
{
        @try
        {
                thrower_try_body();
                @throw [Object new];
        }
        @finally
        {
                finally_body();
        }     
        return 0;
}

static int made_catch = 0;

int 
main(int ac, char *av[])
{
        @try
        {
                thrower();
        }
        @catch (id exc)
        {
		made_catch++;
                [exc free];
        }
	if (made_try != 1)
 	  abort ();
	if (made_finally != 1)
 	  abort ();
	if (made_catch != 1)
 	  abort ();
}



It worked in 4.0.0 20050113 so this is a regression.

-- 
           Summary: [4.1 Regression] Next runtime objc exceptions are broken
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P2
         Component: objc
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23381


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

end of thread, other threads:[~2005-10-01  0:13 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-13 22:33 [Bug objc/23381] New: [4.1 Regression] Next runtime objc exceptions are broken pinskia at gcc dot gnu dot org
2005-08-13 22:46 ` [Bug objc/23381] " pinskia at gcc dot gnu dot org
2005-08-13 23:37 ` pinskia at gcc dot gnu dot org
2005-08-14  2:04 ` pinskia at gcc dot gnu dot org
2005-08-14 19:00 ` pinskia at gcc dot gnu dot org
2005-08-17  2:48 ` pinskia at gcc dot gnu dot org
2005-08-31  0:01 ` [Bug middle-end/23381] " pinskia at gcc dot gnu dot org
2005-08-31  0:10 ` pinskia at gcc dot gnu dot org
2005-08-31  3:35 ` pinskia at gcc dot gnu dot org
2005-08-31  4:48 ` [Bug objc/23381] " pinskia at gcc dot gnu dot org
2005-08-31  4:48 ` pinskia at gcc dot gnu dot org
2005-08-31  4:55 ` cvs-commit at gcc dot gnu dot org
2005-10-01  0:13 ` cvs-commit at developer dot classpath dot org

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