This is the mail archive of the gcc-patches@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]

Re: patch: c++ support for vector opaque types


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


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