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

jakub at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Sep 24 17:13:00 GMT 2004


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



More information about the Gcc-bugs mailing list