diff options
author | Mark Mitchell <mark@markmitchell.com> | 1999-01-15 18:34:48 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 1999-01-15 18:34:48 +0000 |
commit | d490621d8989463e895bd0685144a7132a485059 (patch) | |
tree | 76132e5f3be5666e5b87fdfa8a4787b6f33f4139 /gcc/cp/decl.c | |
parent | 1e75bc3481e7baf4e7f2b588950953d9fed16a24 (diff) | |
download | gcc-d490621d8989463e895bd0685144a7132a485059.zip gcc-d490621d8989463e895bd0685144a7132a485059.tar.gz gcc-d490621d8989463e895bd0685144a7132a485059.tar.bz2 |
pt.c (process_template_parm): Ignore top-level qualifiers on non-type parameters.
* pt.c (process_template_parm): Ignore top-level qualifiers on
non-type parameters.
* decl.c (start_function): Use current_function_parms in the call
to require_complete_type_for_parms, not the probably empty
DECL_ARGUMENTS.
From-SVN: r24684
Diffstat (limited to 'gcc/cp/decl.c')
-rw-r--r-- | gcc/cp/decl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index bf887d2..5e603b6 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -12860,8 +12860,8 @@ start_function (declspecs, declarator, attrs, pre_parsed_p) if (! processing_template_decl) { - /* In a fcn definition, arg types must be complete. */ - require_complete_types_for_parms (DECL_ARGUMENTS (decl1)); + /* In a function definition, arg types must be complete. */ + require_complete_types_for_parms (current_function_parms); if (TYPE_SIZE (complete_type (TREE_TYPE (fntype))) == NULL_TREE) { |