This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


I think "vector" cannot be cv-qualified:  Only the element-type is.
Just like in the case of _Complex.

But _Complex trees work the other way. _Complex's element type is always its main variant, which causes the _Complex type tree to be cv-qualified rather than its TREE_TYPE.


The problem is not duplicated cv-qualifiers in the type. The problem is that we need the vector type to be cv-qualified *elsewhere* in the compiler, so we did exactly what you suggest: collapse the cv-qualifiers in the vector and element types, leaving it in the vector type only as GCC does with complex types.

Paolo


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]