[clang] [clang] add `-fimplicit-constexpr` flag (PR #136436)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Apr 20 03:40:09 PDT 2025
Hana =?utf-8?q?Dusíková?= <hanicka at hanicka.net>,
Hana =?utf-8?q?Dusíková?= <hanicka at hanicka.net>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/136436 at github.com>
cor3ntin wrote:
@Sirraide we could do the check at the point of call - and cache the result, which would require storing some state in FunctionDecl. Or just not care. GCC is explicit about not supporting this scenario https://compiler-explorer.com/z/Mdva4f1a1 - and i don't see the value in diverging from GCC
We also should be careful about the whole consteval propagation thing, which would be affected by this feature.
I think @philnik777, this probably needs an RFC, but it does seem reasonable to me to follow in GCC's footsteps here.
https://github.com/llvm/llvm-project/pull/136436
More information about the cfe-commits
mailing list