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]

g++ ICE in size_binop (2.96 20000228, i686-pc-linux-gnu)



hi -

The CVS version of g++ (2.96 20000228) on a i686-pc-linux-gnu platform
gives an ICE on this code:

- egcsbug6.cc --------------------------------------------------------
struct Base_bitset {
  unsigned M_w[2];
  void M_do_right_shift();
};


void Base_bitset::M_do_right_shift ()
{
  unsigned n = 0;
  M_w[0] =  M_w[n + 1]  ;
}
----------------------------------------------------------------------

$ ./cc1plus egcsbug6.cc 
void Base_bitset::M_do_right_shift ()
egcsbug6.cc:10: Internal compiler error in `size_binop', at
egcsbug6.cc:10: fold-const.c:1873
egcsbug6.cc:10: Please submit a full bug report.
egcsbug6.cc:10: See <URL:http://www.gnu.org/software/gcc/bugs.html> for
egcsbug6.cc:10: instructions.


thanks,
sss

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