Allow initializers of constant values to succeed.
This regresses constFunc.frag, but that's just unexpectedly passing because of the FINISHME just above.
This commit is contained in:

committed by
Ian Romanick

parent
068c80cfe0
commit
ac3af37d27
@@ -1441,8 +1441,12 @@ ast_declarator_list::hir(exec_list *instructions,
|
||||
*/
|
||||
|
||||
if (!rhs->type->is_error()) {
|
||||
bool temp = var->read_only;
|
||||
if (this->type->qualifier.constant)
|
||||
var->read_only = false;
|
||||
(void) do_assignment(instructions, state, lhs, rhs,
|
||||
this->get_location());
|
||||
var->read_only = temp;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user