mirror of
https://gcc.gnu.org/git/gcc.git
synced 2025-01-02 00:43:44 +08:00
decl.c (grokdeclarator): Call decl_type_access_control.
* decl.c (grokdeclarator): Call decl_type_access_control. * parse.y (parse_end_decl): Don't call decl_type_access_control if decl is null. From-SVN: r32123
This commit is contained in:
parent
2b4c135643
commit
9fc336c7e6
@ -1,3 +1,9 @@
|
||||
2000-02-23 Jason Merrill <jason@casey.cygnus.com>
|
||||
|
||||
* decl.c (grokdeclarator): Call decl_type_access_control.
|
||||
* parse.y (parse_end_decl): Don't call decl_type_access_control if
|
||||
decl is null.
|
||||
|
||||
2000-02-23 Nathan Sidwell <nathan@codesourcery.com>
|
||||
|
||||
* decl.c (decls_match): Remove obsolete static member nadgering.
|
||||
|
@ -9296,6 +9296,7 @@ grokdeclarator (declarator, declspecs, decl_context, initialized, attrlist)
|
||||
|
||||
decl = start_decl (declarator, declspecs, 1,
|
||||
attributes, prefix_attributes);
|
||||
decl_type_access_control (decl);
|
||||
if (decl)
|
||||
{
|
||||
/* Look for __unused__ attribute */
|
||||
|
1708
gcc/cp/parse.c
1708
gcc/cp/parse.c
File diff suppressed because it is too large
Load Diff
@ -151,7 +151,10 @@ static void
|
||||
parse_end_decl (decl, init, asmspec)
|
||||
tree decl, init, asmspec;
|
||||
{
|
||||
decl_type_access_control (decl);
|
||||
/* If decl is NULL_TREE, then this was a variable declaration using
|
||||
() syntax for the initializer, so we handled it in grokdeclarator. */
|
||||
if (decl)
|
||||
decl_type_access_control (decl);
|
||||
cp_finish_decl (decl, init, asmspec, init ? LOOKUP_ONLYCONVERTING : 0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user