Try attr before initializer instead of after one.
@@ -3890,6 +3890,7 @@ D (declaration) {
op = NL_HEAD (decl->ops);
tpname_add (op, curr_scope);
}
+ try_attr_spec (c2m_ctx, last_pos);
if (M ('=')) {
P (initializer);
} else {
@@ -3897,7 +3898,6 @@ D (declaration) {
}
op_append (list, new_pos_node3 (c2m_ctx, N_SPEC_DECL, decl->pos,
new_node1 (c2m_ctx, N_SHARE, spec), decl, r));
- try_attr_spec (c2m_ctx, last_pos);
if (!M (',')) break;
}
}
