+2001-06-11 Richard Henderson <rth@redhat.com>
+
+ * g++.old-deja/g++.law/code-gen5.C: Don't send raw pointers to assert.
+
2001-06-11 Joseph S. Myers <jsm28@cam.ac.uk>
* gcc.c-torture/compile/20010611-1.c: New test.
double Vector::
operator()( int row ) const
{
- assert( r );
+ assert(r != 0);
return *r->vec;
}
VecElem Vector::
operator()( int r )
{
- assert(r);
+ assert(r != 0);
return VecElem( *this, r );
}
double Vector::
assign( int rownum, double d )
{
- assert(r);
+ assert(r != 0);
if( rownum > row() || rownum <= 0 ) {
std::cerr << "Warning: trying to assign out of bounds" << std::endl;
VecElem::
operator double()
{
- assert( v.r->vec );
+ assert( v.r->vec != 0 );
return *v.r->vec;
};