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/12109] New: ICE on legal code


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: ICE on legal code
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: phil dot el at wanadoo dot fr
                CC: gcc-bugs 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

void *do_it(void * dest, const void * src);
double *create_float(void);

void parse_rvalue(void **DataPtr)
{
  double local = 0.0;
  int terms = 1;

  *DataPtr = create_float();
  
  switch (terms)
    {
    case 1:
      *((double *)*DataPtr) = local;
      break;
      
    case 2:
      do_it(*DataPtr, &local);
      break;
    }
}

gcc version 3.5-tree-ssa 20030830 (merged 20030817)

$ gcc -c -W -Wall -O2 parse.i
parse.i: In function `parse_rvalue':

parse.i:20: internal compiler error: tree check: expected ssa_name, have
var_decl in process_worklist, at tree-ssa-dce.c:412


regards,
Philippe Elie


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