Re: [cfe-users] constexpr pointer-to-member-function broken in Clang 9?

2019-10-02 Thread Richard Smith via cfe-users
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

[cfe-users] Compiling CUDA does not define __CUDACC__

2019-10-02 Thread Edward Diener via cfe-users
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__