Commit 9fc336c7 by Jason Merrill Committed by Jason Merrill

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
parent 2b4c1356
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> 2000-02-23 Nathan Sidwell <nathan@codesourcery.com>
* decl.c (decls_match): Remove obsolete static member nadgering. * decl.c (decls_match): Remove obsolete static member nadgering.
......
...@@ -9296,6 +9296,7 @@ grokdeclarator (declarator, declspecs, decl_context, initialized, attrlist) ...@@ -9296,6 +9296,7 @@ grokdeclarator (declarator, declspecs, decl_context, initialized, attrlist)
decl = start_decl (declarator, declspecs, 1, decl = start_decl (declarator, declspecs, 1,
attributes, prefix_attributes); attributes, prefix_attributes);
decl_type_access_control (decl);
if (decl) if (decl)
{ {
/* Look for __unused__ attribute */ /* Look for __unused__ attribute */
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -151,7 +151,10 @@ static void ...@@ -151,7 +151,10 @@ static void
parse_end_decl (decl, init, asmspec) parse_end_decl (decl, init, asmspec)
tree 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); cp_finish_decl (decl, init, asmspec, init ? LOOKUP_ONLYCONVERTING : 0);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment