public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/17661] New: ICE in create_tmp_var
@ 2004-09-24 17:13 jakub at gcc dot gnu dot org
  2004-09-24 17:14 ` [Bug tree-optimization/17661] " arjanv at redhat dot com
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: jakub at gcc dot gnu dot org @ 2004-09-24 17:13 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2004-10-13 17:18 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-24 17:13 [Bug tree-optimization/17661] New: ICE in create_tmp_var jakub at gcc dot gnu dot org
2004-09-24 17:14 ` [Bug tree-optimization/17661] " arjanv at redhat dot com
2004-09-24 17:33 ` pinskia at gcc dot gnu dot org
2004-10-12 15:42 ` mueller at kde dot org
2004-10-12 15:42 ` mueller at kde dot org
2004-10-12 16:00 ` [Bug tree-optimization/17661] [4.0 Regression] " pinskia at gcc dot gnu dot org
2004-10-12 16:04 ` [Bug c++/17661] " pinskia at gcc dot gnu dot org
2004-10-12 16:06 ` pinskia at gcc dot gnu dot org
2004-10-12 16:23 ` pinskia at gcc dot gnu dot org
2004-10-12 17:21 ` pinskia at gcc dot gnu dot org
2004-10-13 17:18 ` pinskia at gcc dot gnu dot org
2004-10-13 17:18 ` cvs-commit at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).