[PATCH] PR/16882: overload resolution of vector types

Paolo Bonzini paolo.bonzini@polimi.it
Thu Aug 5 15:06:00 GMT 2004


> I'm of the opinion that this should be handled the same way we do
> for regular arrays.  In particular the TYPE_MAIN_VARIANT should be the
> array of the TYPE_MAIN_VARIANT of the element-type.

But if we do so, we print "const const __vector__ signed short" in the 
case of vector types.

What do you think about the C++ bits?

Paolo


2004-08-05  Paolo Bonzini  <bonzini@gnu.org>

	* tree.c (type_hash_eq): Check that the number of
	TYPE_VECTOR_SUBPARTS be equal.
	(make_vector_type): Move qualifiers to the vector type,
	use the inner type's main variant and build a main variant for
	the vector type if necessary.

cp:
2004-08-05  Paolo Bonzini  <bonzini@gnu.org>

	* call.c (standard_conversion): Move check for conversions
	between vector pointers...
	* typeck.c (ptr_reasonably_similar): ... here.

testsuite:
2004-08-05  Paolo Bonzini  <bonzini@gnu.org>

	* g++.dg/overload/simd1.C: New testcase.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fix-vector-type-overloading.patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20040805/df5ffe2b/attachment.ksh>


More information about the Gcc-patches mailing list