[PATCH] D119609: [Clang][Sema] Prohibit statement expression in the default argument

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 5 11:15:33 PDT 2022


aaron.ballman accepted this revision.
aaron.ballman added a comment.

This should also have a release note that explains the change in behavior, since we're now being more restrictive with what programs we accept. Aside from the release note and the column wrapping, this LGTM!



================
Comment at: clang/include/clang/Basic/DiagnosticSemaKinds.td:4384
+def err_stmt_expr_in_default_arg : Error<
+  "default %select{argument|non-type template argument}0 may not use a GNU statement expression">;
 
----------------
You should re-wrap this to the usual 80-col limit.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D119609/new/

https://reviews.llvm.org/D119609



More information about the cfe-commits mailing list