================
@@ -0,0 +1,13 @@
+// RUN: %clang_cc1 -fsyntax-only -verify=c %s
+// RUN: %clang_cc1 -x c++ -fsyntax-only -verify=cxx %s
+
+typedef char __attribute__((__vector_size__(64))) V;
+
+void implicit_cast_complex_to_vector() {
+ _Complex double x;
+ V y;
+ // c-error@+2 {{implicit conversion from '_Complex double' to incompatible
type 'V' (vector of 64 'char' values)}}
+ // cxx-error@+1 {{implicit conversion from '_Complex double' to 'V' (vector
of 64 'char' values) is not permitted in C++}}
----------------
erichkeane wrote:
Oh shoot... yeah, i see that now.
https://github.com/llvm/llvm-project/pull/187954
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits