[clang] [Clang][RFC] Introduce a trait to determine the structure binding size (PR #131515)
Shafik Yaghmour via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 18 08:12:43 PDT 2025
================
@@ -0,0 +1,182 @@
+// RUN: %clang_cc1 %s -std=c++2c -fsyntax-only -verify
+// RUN: %clang_cc1 %s -std=c++2c -fsyntax-only -verify -fexperimental-new-constant-interpreter
+
+
+struct S0 {};
+struct S1 {int a;};
+struct S2 {int a; int b;};
+struct S3 {double a; int b; int c;};
----------------
shafik wrote:
I was just about to make a similar comment
static members? bit-field? anon bit-fields? I guess it will just failed w/ anon union members?
https://github.com/llvm/llvm-project/pull/131515
More information about the cfe-commits
mailing list