diff options
author | Mark Mitchell <mark@codesourcery.com> | 2003-07-24 23:33:26 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2003-07-24 23:33:26 +0000 |
commit | 22ed7e5f2c90a20b426d6a4886f469cf4910b816 (patch) | |
tree | 796e409dc11901ee2b77ae057d565ef0d12f6050 /gcc/cp/method.c | |
parent | aecf642c785beeffc45043564f23778b21d48306 (diff) | |
download | gcc-22ed7e5f2c90a20b426d6a4886f469cf4910b816.zip gcc-22ed7e5f2c90a20b426d6a4886f469cf4910b816.tar.gz gcc-22ed7e5f2c90a20b426d6a4886f469cf4910b816.tar.bz2 |
cp-tree.h (convert_to_base_statically): Declare.
* cp-tree.h (convert_to_base_statically): Declare.
* call.c (build_special_member_call): Convert INSTANCE to the base
type.
* class.c (convert_to_base_statically): New method.
* init.c (construct_virtual_base): Use it.
* method.c (do_build_assign_ref): Fix typo in comment.
* g++.dg/inherit/access5.C: New test.
From-SVN: r69763
Diffstat (limited to 'gcc/cp/method.c')
-rw-r--r-- | gcc/cp/method.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/method.c b/gcc/cp/method.c index 35319de..00428b1 100644 --- a/gcc/cp/method.c +++ b/gcc/cp/method.c @@ -605,7 +605,7 @@ do_build_assign_ref (tree fndecl) int cvquals = cp_type_quals (TREE_TYPE (parm)); int i; - /* Assign to each of thedirect base classes. */ + /* Assign to each of the direct base classes. */ for (i = 0; i < CLASSTYPE_N_BASECLASSES (current_class_type); ++i) { tree binfo; |