(initdcl, notype_initdcl): Call decl_attributes
before init as well as after. From-SVN: r5779
This commit is contained in:
parent
f825b10f84
commit
aa2e6789a8
@ -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! */
|
||||
|
Loading…
Reference in New Issue
Block a user