Use revert_automatic_type_conversion() to determine the type of typeof().
authorChristoph Mallon <christoph.mallon@gmx.de>
Thu, 18 Dec 2008 13:05:10 +0000 (13:05 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Thu, 18 Dec 2008 13:05:10 +0000 (13:05 +0000)
[r24780]

parser.c

index b993871..9d586b7 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -3203,7 +3203,7 @@ static type_t *parse_typeof(void)
                        type = parse_typename();
                } else {
                        expression = parse_expression();
-                       type       = expression->base.type;
+                       type       = revert_automatic_type_conversion(expression);
                }
                break;