Message ID | 20170725115424.GD3397@redhat.com |
---|---|
State | New |
Headers | show |
diff --git gcc/c/c-decl.c gcc/c/c-decl.c index 50da185e363..12fbc18bb94 100644 --- gcc/c/c-decl.c +++ gcc/c/c-decl.c @@ -7559,10 +7559,9 @@ grokfield (location_t loc, that took root before someone noticed the bug... */ tree type = declspecs->type; - bool type_ok = RECORD_OR_UNION_TYPE_P (type); bool ok = false; - if (type_ok + if (RECORD_OR_UNION_TYPE_P (type) && (flag_ms_extensions || flag_plan9_extensions || !declspecs->typedef_p))