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: vector conditional expression with scalar arguments


On 07/07/2013 08:02 AM, Marc Glisse wrote:
+		    error_at (loc, "could not find an integer type "
+				   "of the same size as %qT", ctype);

Why try to find a result element type the same size as the condition element type? For scalars the condition is bool and the result can be any type.

Jason


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