================
@@ -2066,7 +2066,27 @@ class UserProvidedConstructor {
     UserProvidedConstructor(const UserProvidedConstructor&)            = 
delete;
     UserProvidedConstructor& operator=(const UserProvidedConstructor&) = 
delete;
 };
+struct Ctr {
+    Ctr();
+};
+struct Ctr2 {
+    Ctr2();
+private:
+  NoEligibleTrivialContructor inner;
+};
+
+struct NonCopyable{
+    NonCopyable() = default;
+    NonCopyable(const NonCopyable&) = delete;
+};
+
+class C {
+    NonCopyable nc;
+};
----------------
bolshakov-a wrote:

It would be good to add a note that the classes should not be used here in any 
way causing declarations of the implicit methods to be instantiated (or 
whatever the correct word is).

https://github.com/llvm/llvm-project/pull/162612
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to