[clang] [clang] Allow constexpr-unknown values pre C++23 (PR #129646)

2025-03-14 Thread Eli Friedman via cfe-commits
Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: efriedma-quic wrote: The other test changes look mostly okay, but worth investigating to see if we can improve the diagnostic notes for illegal uses of constexpr-unknown variables. https://github.com/llvm/llvm-project/pull/129646 _

[clang] [clang] Allow constexpr-unknown values pre C++23 (PR #129646)

2025-03-14 Thread Eli Friedman via cfe-commits
Timm =?utf-8?q?B=C3=A4der?= Message-ID: In-Reply-To: efriedma-quic wrote: Reduced testcase for the microsoft-abi-member-pointers.cpp failure: ``` constinit int &b = b; ``` This should produce an error; clang -std=c++23 currently accepts it. https://github.com/llvm/llvm-project/pull/129646 _

[clang] [clang] Allow constexpr-unknown values pre C++23 (PR #129646)

2025-03-07 Thread Shafik Yaghmour via cfe-commits
Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: shafik wrote: > > @cor3ntin I see... My opinion is because [N4916](https://wg21.link/n4916) > > said the [P2280R4](https://wg21.link/p2280r4) was accepted as a DR and GCC > > is so treating it. Not sure whether the divergence would be desired.