That is what this prevents for OpenCL. All members have the same address space because the aggregate's address space is what's specified, not for each individual field. AMD OpenCL at least already rejects fields with specified address spaces.
6.5 says "The address space qualifier may be used in variable declarations to specify the region of memory that is used to allocate the object." As the definition of the member of the aggregate type is not a variable, it shouldn't accept it. http://llvm-reviews.chandlerc.com/D444 _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
