Print the original type in a warning, not the skipped type.
authorChristoph Mallon <christoph.mallon@gmx.de>
Mon, 10 Dec 2007 22:47:18 +0000 (22:47 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Mon, 10 Dec 2007 22:47:18 +0000 (22:47 +0000)
[r18664]

parser.c

index 13197ca..387681d 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -3706,7 +3706,7 @@ static expression_t *parse_select_expression(unsigned precedence,
                }
        }
        if(iter == NULL) {
-               errorf(HERE, "'%T' has no member names '%Y'", type_left, symbol);
+               errorf(HERE, "'%T' has no member named '%Y'", orig_type, symbol);
                return create_invalid_expression();
        }