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: Mark Shinwell <shinwell at codesourcery dot com>
- To: Ian Ollmann <iano at apple dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 02 Nov 2006 13:33:40 +0000
- Subject: Re: Even stricter implicit conversions between vectors
- References: <BC591512-132E-4C9C-B538-E61D3B2F6B4A@apple.com>
Ian Ollmann wrote:
stronger type checking seems like a good idea to me in general.
I agree, but I don't really want to break lots of code all at once,
even if that code is being slightly more slack than it perhaps ought
to be :-)
Given that no-one has really objected to stronger type-checking here
_per se_, then I see two ways forward:
1. Treat this as a regression: fix it and cause errors upon bad
conversions, but risk breaking code.
2. Emit a warning in cases of converting "vector signed int" to
"vector unsigned int", etc., and state that the behaviour will change
to an error in a later version.
Thoughts?
Mark