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 c/32295] New: An invalid c code causes an ICE in create_tmp_var, at gimplify.c:489


The following invalid code snippet fails with
  foo.c:4: internal compiler error: in create_tmp_var, at gimplify.c:489


static enum warn overflow;
int foo (int code, tree stmt)
{
  if (code == 0 || code > (int) overflow)
    code = overflow;
  return code;
}


-- 
           Summary: An invalid c code causes an ICE in create_tmp_var, at
                    gimplify.c:489
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: kkojima at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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