================
@@ -4,9 +4,9 @@ typedef vector<float, 5> float5;
void foo() {
float3x3 A;
- float r = A._m00; // read is ok
- float good1 = A._11;
- float good2 = A._33;
+ float r = A._m00; // expected-warning{{implicit conversion turns
vector to scalar: 'vector<float, 1>' (vector of 1 'float' value) to 'float'}}
+ float good1 = A._11; // expected-warning{{implicit conversion turns
vector to scalar: 'vector<float, 1>' (vector of 1 'float' value) to 'float'}}
+ float good2 = A._33; // expected-warning{{implicit conversion turns vector
to scalar: 'vector<float, 1>' (vector of 1 'float' value) to 'float'}}
----------------
Icohedron wrote:
Known issue to be fixed in a separate PR:
https://github.com/llvm/llvm-project/issues/182599
https://github.com/llvm/llvm-project/pull/182607
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits