------- Comment #8 from reichelt at gcc dot gnu dot org  2007-04-08 23:09 
-------
Here's a reduced version of comment #5 (crashes with -O):

======================================
struct A
{
  char *c;
  virtual ~A() { delete[] c; }
};

void foo();

void bar(bool* p, bool b)
{
  if (b && p[0] && p[1])
    ;
  else if (b)
    {
    L:
      foo();
      if (b)
        foo();
      foo();
    }
  else
    {
      A a;
      goto L;
    }
}
======================================


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
           Keywords|                            |monitored


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

Reply via email to