Issue 90052
Summary Clang rejects valid program involving evaluation of this in constexpr context
Labels clang
Assignees
Reporter ranaanoop
    The following valid program is rejected by clang: [Demo](https://godbolt.org/z/YaKM81aT4)

```
struct X
{
 const void *p_;

  consteval X()
    : p_{this}
  {
 }
};

static constexpr X x{};
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to