diff options
| author | Joe Soroka <gits@joesoroka.com> | 2011-03-06 22:32:35 -0800 |
|---|---|---|
| committer | Joe Soroka <gits@joesoroka.com> | 2011-03-06 22:32:35 -0800 |
| commit | 38cbb40e904f3113ae117278fbbcda0f71f18c92 (patch) | |
| tree | ae2174fba7e46a4b979686d5b91c32ade657b17c /tccgen.c | |
| parent | 5d55647a3cbcddb490163e61307ff4edb13f7546 (diff) | |
| download | tinycc-38cbb40e904f3113ae117278fbbcda0f71f18c92.tar.gz tinycc-38cbb40e904f3113ae117278fbbcda0f71f18c92.tar.bz2 | |
__typeof(t) should not include storage modifiers of t
Diffstat (limited to 'tccgen.c')
| -rw-r--r-- | tccgen.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -2948,6 +2948,8 @@ static int parse_btype(CType *type, AttributeDef *ad) case TOK_TYPEOF3: next(); parse_expr_type(&type1); + /* remove all storage modifiers except typedef */ + type1.t &= ~(VT_STORAGE&~VT_TYPEDEF); goto basic_type2; default: if (typespec_found || typedef_found) |
