The following testcase causes a segfault in duplicate_eh_regions
when compiled with "-fopenmp -O":

==============================
struct A
{
  ~A();
};

struct B
{
  A a1, a2;
};

void foo()
{
  A x1, x2;

  #pragma omp parallel
    B b;
}
==============================

Reduced from Martin's testcase in PR 26084.


-- 
           Summary: ICE in duplicate_eh_regions
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, monitored, openmp
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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

Reply via email to