shithub: scc

Download patch

ref: 1e658a6b2cea5c52bad3a79e3a068c47337f3163
parent: 6bbd976851f4ceb7284901aeac188895330301ad
author: Roberto E. Vargas Caballero <[email protected]>
date: Sun Mar 9 04:02:39 EDT 2014

Remove redundant check of qualifier in fields

This check was done in specifier() and was done again in decl().
The check in specifier() was incorrect, because fields can have
a type specifier, but not a storage qualifier.

--- a/decl.c
+++ b/decl.c
@@ -223,8 +223,6 @@
 		warn(options.implicit,
 		     "type defaults to 'int' in declaration");
 	}
-	if (nested_tags > 0 && (qlf->defined || store->defined))
-		error("type qualifer or store specifier in field declaration");
 
 	if (!tp->c_signed && !tp->c_unsigned) {
 		switch (tp->type) {