[clang] [Clang] Implement consteval blocks for C++26 (PR #188665)

via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 14 15:46:55 PDT 2026


================
@@ -700,13 +700,13 @@ def err_module_odr_violation_mismatch_decl : Error<
   "%q0 has different definitions in different modules; first difference is "
   "%select{definition in module '%2'|defined here}1 found "
   "%select{end of class|public access specifier|private access specifier|"
-  "protected access specifier|static assert|field|method|type alias|typedef|"
+  "protected access specifier|static assert|consteval block|field|method|type alias|typedef|"
----------------
Sirraide wrote:

Yeah, I was mostly just making sure we don't crash here if we ever do emit these diagnostics; I think we do have tests for _some_ of the ODR checks but they’re not comprehensive from what I saw...

https://github.com/llvm/llvm-project/pull/188665


More information about the cfe-commits mailing list