aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/evaluate.c
diff options
context:
space:
mode:
Diffstat (limited to 'evaluate.c')
-rw-r--r--evaluate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/evaluate.c b/evaluate.c
index c757fc82..21d5d761 100644
--- a/evaluate.c
+++ b/evaluate.c
@@ -3752,6 +3752,8 @@ static void evaluate_goto_statement(struct statement *stmt)
sparse_error(stmt->pos, "label '%s' was not declared", show_ident(label->ident));
current_fn->bogus_linear = 1;
}
+ if (label->namespace == NS_NONE)
+ current_fn->bogus_linear = 1;
}
struct symbol *evaluate_statement(struct statement *stmt)