Issue 129845
Summary accepts-invalid with C++23 constexpr-unknown with struct containing reference
Labels clang:frontend, c++23, constexpr
Assignees
Reporter efriedma-quic
    ```
int &ff();
int &x = ff();
struct A { int& x; };
constexpr A g = {x};
const A* gg = &g;
```

Should be rejected, currently accepted.  (And related variations miscompile.)
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to