OgnianM
OgnianM
| | | | --- | --- | | Bugzilla Link | [52508](https://llvm.org/bz52508) | | Version | 12.0 | | OS | Linux | | CC | @zygoloid | ##...
```c++ #include template decltype(T::z) doesnt_crash(T& v) { decltype(v.z) i = 0; i += v.z; return i; } int main() { struct test { int z; }; auto crashes = [](test&...
The code below fails to compile with clang, works on gcc ``` #include template struct Test { static constexpr int value = v; }; int main() { Test test; auto&...
``` $ clang++ -g -x cuda -c test.cu ptxas /tmp/test-sm_52-55e123.s, line 841; fatal : Parsing error near '.': syntax error ptxas fatal : Ptx assembly aborted due to errors clang++:...
The error: ``` /usr/local/lib/clang/20/include/cuda_wrappers/new:94:25: error: __device__ function 'operator new' cannot overload __host__ __device__ function 'operator new' 94 | __device__ inline void *operator new(__SIZE_TYPE__, void *__ptr) CUDA_NOEXCEPT { | ^ /usr/local/bin/../include/c++/v1/new:252:1:...
https://godbolt.org/z/svbPEYd5f
https://godbolt.org/z/T64z6r5b5 Practically, this means that just including `` breaks compilation. I can look into it later if nobody has any immediate ideas.
https://godbolt.org/z/az71fMocx
https://godbolt.org/z/zE6aPh7Ms
Incorrect results from sizeof...(): https://godbolt.org/z/1ox1o44Eh Compiler crash: https://godbolt.org/z/Wb8rWMs7n