clearer, and mention the existence of mutable lambdas.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152598
91177308-0d34-0410-b5e6-
96231b3b80d8
def err_block_decl_ref_not_modifiable_lvalue : Error<
"variable is not assignable (missing __block type specifier)">;
def err_lambda_decl_ref_not_modifiable_lvalue : Error<
- "variable is not assignable (captured by copy)">;
+ "cannot assign to a variable captured by copy in a non-mutable lambda">;
def err_typecheck_call_not_function : Error<
"called object type %0 is not a function or function pointer">;
def err_call_incomplete_return : Error<
void test() {
int n = 0;
[=] {
- n = 1; // expected-error {{variable is not assignable (captured by copy)}}
+ n = 1; // expected-error {{cannot assign to a variable captured by copy in a non-mutable lambda}}
};
}
}