From 7e2ce135716ed8771d39d1b96b13505d57d833ef Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Tue, 22 Jan 2008 23:08:50 +0000 Subject: [PATCH] create invalid expression if reference can't be resolved to avoid crashs [r18847] --- TODO | 2 +- parser.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/TODO b/TODO index 5db0d4e..8c059a1 100644 --- a/TODO +++ b/TODO @@ -26,7 +26,7 @@ Parser: ast2firm: - output source file positions for panics... - output variable names for uninitialized variable warnings -- handle bitfield members with 0 correctly (standard says this finished the +- handle bitfield members with 0 correctly (standard says they finish the current unit) Missing Warnings: diff --git a/parser.c b/parser.c index 0864933..b00a3e6 100644 --- a/parser.c +++ b/parser.c @@ -3418,7 +3418,7 @@ static expression_t *parse_reference(void) source_position); } else { errorf(HERE, "unknown symbol '%Y' found.", ref->symbol); - return expression; + return create_invalid_expression(); } } -- 2.20.1