patch: c++ support for vector opaque types

Mark Mitchell mark@codesourcery.com
Wed Jul 2 03:52:00 GMT 2003


On Thu, 2003-06-26 at 21:44, Jason Merrill wrote:
> On Thu, 26 Jun 2003 21:17:11 -0400, Aldy Hernandez <aldyh@redhat.com> wrote:
> 
> > *************** standard_conversion (tree to, tree from,
> > *** 767,772 ****
> > --- 768,778 ----
> >   
> >         return conv;
> >       }
> > + 
> > +   if (fcode == VECTOR_TYPE && tcode == VECTOR_TYPE
> > +       && ((*targetm.vector_opaque_p) (from)
> > + 	  || (*targetm.vector_opaque_p) (to)))
> > +     return conv;
> 
> This would give this conversion identity rank, which is wrong; it should be
> a STD_CONV, like conversions between arithmetic types.

Furthermore, that choice needs to be documented in the manual.

-- 
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com



More information about the Gcc-patches mailing list