[llvm-bugs] [Bug 48228] New: Clang fails to compile cuda code in C++20 mode, works in C++17

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Nov 19 02:24:34 PST 2020


https://bugs.llvm.org/show_bug.cgi?id=48228

            Bug ID: 48228
           Summary: Clang fails to compile cuda code in C++20 mode, works
                    in C++17
           Product: clang
           Version: 11.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: CUDA
          Assignee: unassignedclangbugs at nondot.org
          Reporter: bruno.manga95 at gmail.com
                CC: llvm-bugs at lists.llvm.org

Trying to compile the following cuda code:


__device__ void foo() {}
int main(){}

Works in C++17 mode, fails in C++20 mode with a series of errors about "unknown
type name '__device__'" from the cuda_wrappers headers.

-- 
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/20201119/de926ffb/attachment.html>


More information about the llvm-bugs mailing list