[PATCH] D58236: Make address space conversions a bit stricter.

John McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 26 15:02:45 PDT 2019


rjmccall added a comment.

In D58236#1443556 <https://reviews.llvm.org/D58236#1443556>, @ebevhan wrote:

> In D58236#1443082 <https://reviews.llvm.org/D58236#1443082>, @rjmccall wrote:
>
> > I think C probably requires us to allow this under an explicit cast, but we can at least warn about it.  It does not require us to allow this as an implicit conversion, and that should be an error.
>
>
> Are you referring to casts to and from `void*`? I think the standard says those have to be allowed, and I don't see anything about whether or not the conversion has to be explicit.


No, I mean casts between pointer types that change the pointee address space.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D58236/new/

https://reviews.llvm.org/D58236





More information about the cfe-commits mailing list