OgnianM

Results issues of OgnianM

| | | | --- | --- | | Bugzilla Link | [52508](https://llvm.org/bz52508) | | Version | 12.0 | | OS | Linux | | CC | @zygoloid | ##...

c++17
clang:frontend
bugzilla
crash-on-valid

```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&...

duplicate
clang:codegen
crash
lambda

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&...

duplicate
clang:frontend

``` $ 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++:...

good first issue
backend:NVPTX

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:...

clang:headers
c++26

https://godbolt.org/z/svbPEYd5f

clang:frontend
confirmed
crash
c++26

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.

clang
constexpr

https://godbolt.org/z/az71fMocx

cuda
clang:frontend
quality-of-implementation

https://godbolt.org/z/zE6aPh7Ms

clang:frontend
confirmed
crash

Incorrect results from sizeof...(): https://godbolt.org/z/1ox1o44Eh Compiler crash: https://godbolt.org/z/Wb8rWMs7n

clang:frontend
miscompilation
crash-on-invalid
regression:16