[clang] [Clang] Fix the access checking for non-aggregates in default arguments (PR #141207)
via cfe-commits
cfe-commits at lists.llvm.org
Fri May 23 01:43:18 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;
----------------
cor3ntin wrote:
Can we user define it? It would be clearer what is tested.
https://github.com/llvm/llvm-project/pull/141207
More information about the cfe-commits
mailing list