This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Even stricter implicit conversions between vectors
- From: Ian Lance Taylor <iant at google dot com>
- To: Mark Shinwell <shinwell at codesourcery dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: 31 Oct 2006 10:58:32 -0800
- Subject: Re: Even stricter implicit conversions between vectors
- References: <45479A4B.7090405@codesourcery.com>
Mark Shinwell <shinwell@codesourcery.com> writes:
> I would now like to propose that the check in that function be made
> even stronger such that it disallows conversions between vectors
> whose element types differ -- even if an implicit conversion exists
> between those element types.
As far as I can see, what that amounts to is saying that there should
not be an implicit conversion between vector of int and vector of
unsigned int. It seems to me that a cast would then be required to
call, e.g., vec_add with arguments of type __vector unsigned int. I
don't see how that is useful.
But perhaps I am mistaken; can you give an example of the type of
thing which is currently permitted which you think should be
prohibited?
Ian