[clang] [Clang] Implement the core language parts of P2786 - Trivial relocation (PR #127636)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 24 06:09:38 PST 2025


================
@@ -0,0 +1,42 @@
+// RUN: %clang_cc1 -std=c++03 -verify=expected,cxx11,cxx03 -fsyntax-only %s
+// RUN: %clang_cc1 -std=c++11 -verify=expected,cxx11 -fsyntax-only %s
+// RUN: %clang_cc1 -std=c++2c -verify=expected -fsyntax-only %s
+
+
+class A trivially_relocatable_if_eligible {};
+// cxx11-warning at -1 {{'trivially_relocatable_if_eligible' keyword is a C++2c extension}}
----------------
erichkeane wrote:

C++26 isn't 'official' yet, so our outward messaging is 2c at least for another few meetings.  

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


More information about the cfe-commits mailing list