The following testcase fails when using  sjlj EH unwind (mingw32
compiler) but succeeds when using Dwarf2 EH unwind (also mingw with
sources modified to enable Dwarf2).

Is this related to PR 19771?

/* sjlj_vla.cc */
extern "C" void abort(void);

void foo()
{
  int size = 1;
  int a[size];

  a[0] = 0;

  try
    {
      throw 0;
    }
  catch (int i)
    {
    }
  
  if (a[0] != 0)
    abort();
}

int main()
{
  foo();
}

-- 
           Summary: VLA's vs SjLj EH unwind
           Product: gcc
           Version: 3.4.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dannysmith at users dot sourceforge dot net
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-mingw32
  GCC host triplet: i686-pc-mingw32
GCC target triplet: i686-pc-mingw32


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

Reply via email to