Index: tccgen.c
===================================================================
RCS file: /sources/tinycc/tinycc/tccgen.c,v
retrieving revision 1.3
diff -u -r1.3 tccgen.c
--- tccgen.c	19 May 2009 22:10:19 -0000	1.3
+++ tccgen.c	22 May 2009 09:09:45 -0000
@@ -2622,6 +2622,10 @@
         case TOK_TYPEOF3:
             next();
             parse_expr_type(&type1);
+            type1.t &= ~VT_EXTERN;
+            type1.t &= ~VT_STATIC;
+            type1.t &= ~VT_CONSTANT;
+            type1.t &= ~VT_VOLATILE;
             goto basic_type2;
         default:
             if (typespec_found || typedef_found)
