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:
Jason Merrill 2000-02-23 20:25:49 +00:00 committed by Jason Merrill
parent 2b4c135643
commit 9fc336c7e6
4 changed files with 866 additions and 854 deletions

View File

@ -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.

View File

@ -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 */

File diff suppressed because it is too large Load Diff

View File

@ -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);
}