gcc version 4.5.0 20090902 (experimental) [trunk revision 151353] (GCC)

$ cat ice.i
void malloc_init() {
  char *cptr;
  char buf[1];
  int tmbd = atoi(cptr);
  if (tmbd > 0)
    tmbd = (tmbd <= 124) ? tmbd : 124;
   else
    tmbd = 0;
   sprintf(buf, "%d\n", tmbd);
}
$ ./xgcc -B. -O1 ice.i -c ice.i: In function 'malloc_init':
ice.i:9:4: warning: incompatible implicit declaration of built-in function
'sprintf'
$ ./xgcc -B. -O1 -fvar-tracking-assignments ice.i -c
ice.i: In function 'malloc_init':
ice.i:9:4: warning: incompatible implicit declaration of built-in function
'sprintf'
ice.i:1:6: error: SSA name in freelist but still referenced
tmbd_4
cc1: note: in statement
tmbd_9 = MAX_EXPR <tmbd_4, 0>;

ice.i:1:6: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


-- 
           Summary: VTA: SSA name in freelist but still referenced
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rmansfield at qnx dot com
 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=41232

Reply via email to