On Tue, 1 Oct 2019 at 10:42, Michael Price - Dev via cfe-users <
cfe-users@lists.llvm.org> wrote:
> Should this be ill-formed?
>
> struct C {
> constexpr C() {}
> constexpr bool f() const { return true; }
> };
> constexpr C c{};
>
> constexpr bool fails_9_0_0(const C* pc, bool (C::*pm)() const
According to
https://llvm.org/docs/CompileCudaWithLLVM.html#detecting-clang-vs-nvcc-from-code
if I compile a CUDA file then __CUDACC__ should be defined. I have this
program as 'clang_cuda.cu':
#if !defined(__clang__)
#error Clang is not defined
#elif !defined(__CUDACC__)
#error __CUDACC__