[PATCH] D111400: [Clang][C++2b] P2242R3: Non-literal variables [...] in constexpr
Hubert Tong via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 22 08:52:04 PDT 2022
hubert.reinterpretcast added inline comments.
================
Comment at: clang/include/clang/Basic/DiagnosticASTKinds.td:69
+def note_constexpr_static_local : Note<
+ "control flows through the declaration of a %select{static|thread_local}0 variable">;
def note_constexpr_subobject_declared_here : Note<
----------------
erichkeane wrote:
> aaron.ballman wrote:
> > erichkeane wrote:
> > > Hmm... this feels a little awkward to me. Though, I usually have Aaron do the bikeshedding, so if he didn't come up with better I guess we can let it go.
> > I didn't think it was overly awkward, about the only question I had was "should we quote the `static` and `thread_local` as keywords?" when I reviewed.
> Ok, I can live with that. AS far as quoting, I think we are consistently inconsistent on that one.
Minor nit:
The code already behaves as-if the resolution of CWG 2552 is applied. Let's use the corresponding wording.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D111400/new/
https://reviews.llvm.org/D111400
More information about the cfe-commits
mailing list