[PATCH] Fix assertion failure when a member is given an address space.

Richard Smith richard at metafoo.co.uk
Thu Feb 21 11:14:08 PST 2013


On Thu, Feb 21, 2013 at 10:47 AM, Joey Gouly <joey.gouly at arm.com> wrote:

>
>   I believe this is wrong for OpenCL:
>   `6.3.o. Elements of a struct or union must belong to the same address
> space. Declaring a struct or union whose elements are in different address
> spaces is illegal`
>

6.5 says that the address space qualifiers in OpenCL can only be applied to
variables, and struct and union fields aren't variables, so I think this is
correct there too.

Patch LGTM.

  Although, I'm not sure if anyone actually uses this..
>
> http://llvm-reviews.chandlerc.com/D444
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130221/2527b7e5/attachment.html>


More information about the cfe-commits mailing list