Not sure it's the right approach but the idea is that we would like to accept vector contraction syntax from OpenCL C.
This commit fixes Sema checks when creating a vector using compound vector syntax. We should pass the type of initializing expression consistently, to avoid mismatch with the initializer.
This change also improves testing for the vector creation.
There should at least be a comment here explaining this, but mostly it's been so long since I've really understood this code that I'd like Richard to look at it.