This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/17661] New: ICE in create_tmp_var


struct C
{
  int *c;
  C () : c (0) { }
  C (const C &x) : c (x.c) { }
  C &operator++ () { return *this; }
};

int
foo (void)
{
  int i = 0;
  C j;
  bool k = false;

  for (; i < 30; k ? j : ++j)
    k = false, ++i;

  return 0;
}

ICEs at any optimization level in create_tmp_var.
Works ok in G++ 3.4.2.

-- 
           Summary: ICE in create_tmp_var
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jakub at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: x86_64-redhat-linux


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]