}
/**
- * Do integer promotion for a given type.
+ * §6.3.1.1:2 Do integer promotion for a given type.
*
* @param type the type to promote
* @return the promoted type
} else if (token.type != ']') {
expression_t *const size = parse_assignment_expression();
- /* array size must have integer type §6.7.5.2 */
+ /* §6.7.5.2:1 Array size must have integer type */
if (!is_type_integer(size->base.type)) {
errorf(&size->base.source_position,
"array size '%E' must have integer type but has type '%T'",
}
}
+/* §6.5.2.2:6 */
static type_t *get_default_promoted_type(type_t *orig_type)
{
type_t *result = orig_type;