[clang] [Clang] Fix the access checking for non-aggregates in default arguments (PR #141207)
Younan Zhang via cfe-commits
cfe-commits at lists.llvm.org
Fri May 23 04:32:58 PDT 2025
================
@@ -282,4 +283,25 @@ static_assert(S<short *>().SizeOfT<char>() == sizeof(short *), "");
} // namespace GH68490
+namespace GH83608 {
+
+class single;
+
+class check_constructible {
+ // This makes it a non-aggregate in C++20+.
+ check_constructible() = default;
----------------
zyn0217 wrote:
Yes that way the C++20 tag is no longer necessary
https://github.com/llvm/llvm-project/pull/141207
More information about the cfe-commits
mailing list