diff options
author | Ben Elliston <bje@au.ibm.com> | 2004-11-24 04:09:27 +0000 |
---|---|---|
committer | Ben Elliston <bje@gcc.gnu.org> | 2004-11-24 15:09:27 +1100 |
commit | af746697141397c71da91a4f52f2e3b9db005cec (patch) | |
tree | f402c5fea47ec7ddebaa9e4cae76711df49aa044 /gcc/cp/semantics.c | |
parent | 0b167d51ed3c0f9dfa2cee5bde9d7fd5a6bdd04d (diff) | |
download | gcc-af746697141397c71da91a4f52f2e3b9db005cec.zip gcc-af746697141397c71da91a4f52f2e3b9db005cec.tar.gz gcc-af746697141397c71da91a4f52f2e3b9db005cec.tar.bz2 |
cp-tree.h (context_as_string): Remove extern.
* cp-tree.h (context_as_string): Remove extern.
* error.c (context_as_string): Remove.
* cp-tree.h (cp_type_qual_from_rid): Remove extern.
* lex.c (cp_type_qual_from_rid): Remove.
* cp-tree.h (do_poplevel): Remove extern.
(check_multiple_declarators): Likewise.
* semantics.c (do_poplevel): Make static.
(check_multiple_declarators): Remove.
* cp-tree.h (check_final_overrider): Remove extern.
* search.c (check_final_overrider): Make static.
* cp-tree.h (build_artificial_parm): Remove extern.
* decl2.c (build_artificial_parm): Make static.
From-SVN: r91134
Diffstat (limited to 'gcc/cp/semantics.c')
-rw-r--r-- | gcc/cp/semantics.c | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index a36a631..2cd78eb 100644 --- a/gcc/cp/semantics.c +++ b/gcc/cp/semantics.c @@ -401,7 +401,7 @@ anon_aggr_type_p (tree node) /* Finish a scope. */ -tree +static tree do_poplevel (tree stmt_list) { tree block = NULL; @@ -2294,31 +2294,6 @@ finish_base_specifier (tree base, tree access, bool virtual_p) return result; } -/* Called when multiple declarators are processed. If that is not - permitted in this context, an error is issued. */ - -void -check_multiple_declarators (void) -{ - /* [temp] - - In a template-declaration, explicit specialization, or explicit - instantiation the init-declarator-list in the declaration shall - contain at most one declarator. - - We don't just use PROCESSING_TEMPLATE_DECL for the first - condition since that would disallow the perfectly valid code, - like `template <class T> struct S { int i, j; };'. */ - if (at_function_scope_p ()) - /* It's OK to write `template <class T> void f() { int i, j;}'. */ - return; - - if (PROCESSING_REAL_TEMPLATE_DECL_P () - || processing_explicit_instantiation - || processing_specialization) - error ("multiple declarators in template declaration"); -} - /* Issue a diagnostic that NAME cannot be found in SCOPE. DECL is what we found when we tried to do the lookup. */ |