diff --git a/src/type_determiner.cc b/src/type_determiner.cc index 6a8532a7cb..6b5e6733bf 100644 --- a/src/type_determiner.cc +++ b/src/type_determiner.cc @@ -986,8 +986,10 @@ bool TypeDeterminer::DetermineMemberAccessor( std::make_unique(vec->type(), size)); } } else { - set_error(expr->source(), - "invalid type " + data_type->type_name() + " in member accessor"); + set_error( + expr->source(), + "v-0007: invalid use of member accessor on a non-vector/non-struct " + + data_type->type_name()); return false; } diff --git a/tools/known_tint_failures b/tools/known_tint_failures index 8cd01f14c6..baf153bee0 100644 --- a/tools/known_tint_failures +++ b/tools/known_tint_failures @@ -8,10 +8,5 @@ global-vars-must-be-unique-v3.fail.wgsl runtime-array-not-last.fail.wgsl self-recursion-v2.fail.wgsl self-recursion.fail.wgsl -struct-def-before-use.fail.wgsl -struct-member-def-before-use-v2.fail.wgsl struct-member-def-before-use-v3.fail.wgsl -struct-member-def-before-use-v4.fail.wgsl -struct-member-def-before-use-v5.fail.wgsl -struct-member-def-before-use.fail.wgsl struct-use-before-def.fail.wgsl