From 4ccdad496797f05c13ddb2723c52e42eb9023496 Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Mon, 15 Sep 2008 12:50:12 +0000 Subject: [PATCH] Get unqualified types before doing anything in semantic_arithmetic(). [r21967] --- parser.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/parser.c b/parser.c index 7bfb77f..1502d2e 100644 --- a/parser.c +++ b/parser.c @@ -7597,6 +7597,9 @@ static type_t *semantic_arithmetic(type_t *type_left, type_t *type_right) { /* TODO: handle complex + imaginary types */ + type_left = get_unqualified_type(type_left); + type_right = get_unqualified_type(type_right); + /* § 6.3.1.8 Usual arithmetic conversions */ if (type_left == type_long_double || type_right == type_long_double) { return type_long_double; -- 2.20.1