================
@@ -99,6 +127,14 @@ static_assert(std::is_trivially_copyable_v<int&>);
// expected-note@-1 {{'int &' is not trivially copyable}} \
// expected-note@-1 {{because it is a reference type}}
+static_assert(std::is_assignable<int&, int>::value);
+
+static_assert(std::is_assignable<int&, void>::value);
+// expected-error-re@-1 {{static assertion failed due to requirement
'std::{{.*}}is_assignable<int &, void>::value'}} \
+// expected-error@-1 {{assigning to 'int' from incompatible type 'void'}}
----------------
efriedma-quic wrote:
Unlike the other DiagnoseTypeTraitDetails diagnostics, this is an "error", not
a "note". I'm not sure that actually causes any serious issues right now, but
it's a bit confusing, and could cause issues in the future.
https://github.com/llvm/llvm-project/pull/144836
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits