[clang] [clang] Add tests for CWG issues regarding completeness of types (PR #92113)
Vlad Serebrennikov via cfe-commits
cfe-commits at lists.llvm.org
Tue May 21 17:37:12 PDT 2024
================
@@ -451,6 +463,25 @@ static_assert(!__is_nothrow_constructible(D4, int), "");
#endif
} // namespace cwg1350
+namespace cwg1352 { // cwg1352: 3.0
+struct A {
+#if __cplusplus >= 201103L
+ int a = sizeof(A);
----------------
Endilll wrote:
> It also mentions in the body of member function
Yeah, that is worth adding. I'll prepare a PR.
https://github.com/llvm/llvm-project/pull/92113
More information about the cfe-commits
mailing list