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: unassignedclangb...@nondot.org
          Reporter: dr...@jwdt.org
                CC: anastasia.stul...@arm.com, llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to