(initdcl, notype_initdcl): Call decl_attributes

before init as well as after.

From-SVN: r5779
This commit is contained in:
Richard Stallman 1993-10-13 20:40:41 +00:00
parent f825b10f84
commit aa2e6789a8

View File

@ -1019,6 +1019,7 @@ maybeasm:
initdcl:
declarator maybeasm maybe_attribute '='
{ $<ttype>$ = start_decl ($1, current_declspecs, 1);
decl_attributes ($<ttype>$, $3);
start_init ($<ttype>$, $2, global_bindings_p ()); }
init
/* Note how the declaration of the variable is in effect while its init is parsed! */
@ -1034,6 +1035,7 @@ initdcl:
notype_initdcl:
notype_declarator maybeasm maybe_attribute '='
{ $<ttype>$ = start_decl ($1, current_declspecs, 1);
decl_attributes ($<ttype>$, $3);
start_init ($<ttype>$, $2, global_bindings_p ()); }
init
/* Note how the declaration of the variable is in effect while its init is parsed! */