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

Gabriel Dos Reis gdr@integrable-solutions.net
Thu Aug 5 15:55:00 GMT 2004


Paolo Bonzini <paolo.bonzini@polimi.it> writes:

| > 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.

No, we should not.  The bits I'm objecting to are 

  This patch fixes the problem by:
  - using the main variant (unqualified) as the vector type's inner type
  - qualifying the vector type
  - ensuring the inner type is unqualified (otherwise we'd print vectors
  as "const const")

Either you collapse repeated const or you diagnose it.

-- Gaby



More information about the Gcc-patches mailing list