# HG changeset patch # User mjs # Date 1377246844 -3600 # Node ID 24d0be6c31f7abddb85beff1200eb514eab0e240 # Parent 5fa872f3d073328e36ec2476382e7e4d34ddc235 Change error message text so as to become more suitable to where they might occur in the source code. diff -r 5fa872f3d073 -r 24d0be6c31f7 stage3/lvalue_check.cc --- a/stage3/lvalue_check.cc Thu Aug 22 19:12:10 2013 +0100 +++ b/stage3/lvalue_check.cc Fri Aug 23 09:34:04 2013 +0100 @@ -156,7 +156,7 @@ void lvalue_check_c::check_assignment_to_constant(symbol_c *lvalue) { unsigned int option = search_var_instance_decl->get_option(lvalue); if (option == search_var_instance_decl_c::constant_opt) { - STAGE3_ERROR(0, lvalue, lvalue, "Assignment to CONSTANT variables is not be allowed."); + STAGE3_ERROR(0, lvalue, lvalue, "Assignment to CONSTANT variables is not allowed."); } } @@ -230,7 +230,7 @@ (typeid( *lvalue ) == typeid( neg_expression_c )) || (typeid( *lvalue ) == typeid( not_expression_c )) || (typeid( *lvalue ) == typeid( function_invocation_c ))) - STAGE3_ERROR(0, lvalue, lvalue, "Assigning an expression to an OUT or IN_OUT parameter is not allowed."); + STAGE3_ERROR(0, lvalue, lvalue, "Assignment to an expression or a literal value is not allowed."); } @@ -249,7 +249,7 @@ /* B 2.1 Instructions and Operands */ /***********************************/ (typeid( *lvalue ) == typeid( simple_instr_list_c))) - STAGE3_ERROR(0, lvalue, lvalue, "Assigning an IL list IN_OUT parameter is not allowed."); + STAGE3_ERROR(0, lvalue, lvalue, "Assigning an IL list to an IN_OUT parameter is not allowed."); }