[llvm-bugs] [Bug 42033] New: Address space problem with automatic variables
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon May 27 05:09:46 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=42033
Bug ID: 42033
Summary: Address space problem with automatic variables
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: OpenCL
Assignee: unassignedclangbugs at nondot.org
Reporter: drohr at jwdt.org
CC: anastasia.stulova at arm.com, llvm-bugs at lists.llvm.org
The following sample code yields the error message "automatic variable
qualified with an invalid address space" compiled with clang
6e38ac04985f360b394f575a820b9966bc76b696 and cl-std=c++
template <class T>
void xxx(T* left, T* right)
{
T* min = left;
}
__kernel void test()
{
int foo[10];
xxx(&foo[0], &foo[9]);
}
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190527/55cb4075/attachment.html>
More information about the llvm-bugs
mailing list