================
@@ -6429,6 +6429,12 @@ def note_enforce_read_only_placement : Note<"type was 
declared read-only here">;
 
 def note_deleted_dtor_no_operator_delete : Note<
   "virtual destructor requires an unambiguous, accessible 'operator delete'">;
+def note_deleted_dtor_default_ctor : Note<
+  "destructor of union %0 is implicitly deleted because "
+  "%select{"
+  "%select{it has no default constructor|its default constructor is a deleted 
function}2|"
+  "overload resolution to default-initialize it is ambiguous|"
----------------
love1angel wrote:

Added a test for this in 
https://github.com/llvm/llvm-project/pull/185886/commits/d7fed4233a3d3a63e826d4cce92037aaba189638
 (Test 23: union with two constructors taking default arguments, making 
default-initialization ambiguous).

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

Reply via email to