[+Richard] 

----- Original Message -----

> From: "Artem Belevich" <t...@google.com>
> To: reviews+d18051+public+fb9c7f3f37ff8...@reviews.llvm.org
> Cc: "Justin Lebar" <jle...@google.com>, "Jingyue Wu"
> <jing...@google.com>, "Hal Finkel" <hfin...@anl.gov>, "cfe-commits"
> <cfe-commits@lists.llvm.org>
> Sent: Thursday, March 10, 2016 6:38:21 PM
> Subject: Re: [PATCH] D18051: [CUDA] Provide CUDA's vector types
> implemented using clang's vector extension.

> There were ambiguities in overload resolution between vector types
> and their base types. I.e. if I had

> void foo(int);
> void foo(int3);

> then call foo(3) was ambiguous.
> It wasn't clear whether this extension is supposed to work in C++ at
> all.

I'm pretty sure that the vector types are supposed to work in C++, and they 
have different manglings, so that behavior seems like either bug or a missing 
desirable feature. Richard, what do you think? 

Thanks again, 
Hal 

> On Thu, Mar 10, 2016 at 4:05 PM, Hal Finkel < hfin...@anl.gov >
> wrote:

> > hfinkel added a subscriber: hfinkel.
> 
> > hfinkel added a comment.
> 

> > In http://reviews.llvm.org/D18051#372490 , @tra wrote:
> 

> > > Ugh. Found more problems with using vector types in C++.
> > > Abandoning
> > > the idea.
> 

> > I'm curious, what problems?
> 

> > http://reviews.llvm.org/D18051
> 

> --

> --Artem Belevich
-- 

Hal Finkel 
Assistant Computational Scientist 
Leadership Computing Facility 
Argonne National Laboratory 
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to