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

2025-07-28 Thread A. Jiang via cfe-commits
Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: https://github.com/frederick-vs-ja updated https://github.com/llvm/llvm-project/pull/129646 >From 54c3e72e2c3b507ecf8cd65c15b9e137ba7331c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Tue, 4 Mar 2025 06:29:31 +0100 Subject

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

2025-07-16 Thread A. Jiang via cfe-commits
Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: frederick-vs-ja wrote: Now many potentially useful error messages are merely adjusted. But `-Winvalid-constexpr` misbehaves due to some constexpr-unknown changes. This was not noticed perhaps because `-Winvalid-constexpr` is off by default sinc

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

2025-07-15 Thread A. Jiang via cfe-commits
Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: https://github.com/frederick-vs-ja updated https://github.com/llvm/llvm-project/pull/129646 >From 54c3e72e2c3b507ecf8cd65c15b9e137ba7331c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Tue, 4 Mar 2025 06:29:31 +0100 Subject

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