diff options
author | Mark Mitchell <mark@codesourcery.com> | 2000-05-24 06:15:04 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2000-05-24 06:15:04 +0000 |
commit | 721c3b4275799e26710b77ffa94e8c971369fc06 (patch) | |
tree | 8e2371cfca8f35a1de18c2cef46477b400969c19 /gcc/cp/typeck.c | |
parent | d6c6b5531ee200f0773cd1666160380785557161 (diff) | |
download | gcc-721c3b4275799e26710b77ffa94e8c971369fc06.zip gcc-721c3b4275799e26710b77ffa94e8c971369fc06.tar.gz gcc-721c3b4275799e26710b77ffa94e8c971369fc06.tar.bz2 |
cp-tree.h (lang_decl_flags): Rename mutable_flag to uninlinable and bitfield to tinfo_fn_p.
* cp-tree.h (lang_decl_flags): Rename mutable_flag to uninlinable
and bitfield to tinfo_fn_p.
(DECL_TINFO_FN_P): Adjust.
(SET_DECL_TINFO_FN_P): Likewise.
(DECL_MUTABLE_P): Likewise.
(DECL_C_BIT_FIELD): Likewise.
(SET_DECL_C_BIT_FIELD): Likewise.
(CLEAR_DECL_C_BIT_FIELD): Likewise.
(DECL_UNINLINABLE): Likewise.
* class.c (alter_access): Call retrofit_lang_decl if ncessary.
(handle_using_decl): Remove assertion.
(build_vtbl_or_vbase_field): Use build_decl, not build_lang_decl,
to build FIELD_DECLs.
(build_base_field): Likewise.
(layout_class_type): Likewise.
* decl.c (init_decl_processing): Likewise.
(build_ptrmemfunc_type): Likewise.
(grokdeclarator): Likewise.
* decl2.c (grok_x_components): Likewise.
* except.c (call_eh_info): Likewise.
* init.c (init_init_processing): Likewise.
* rtti.c (expand_class_desc): Likewise.
(create_pseudo_type_info): Likewise.
(get_vmi_pseudo_type_info): Likewise.
(create_tinfo_types): Likewise.
* ptree.c (print_lang_decl): Adjust.
* typeck.c (build_component_ref): Don't check DECL_LANG_SPECIFIC
before checking DECL_MUTABLE_P.
From-SVN: r34125
Diffstat (limited to 'gcc/cp/typeck.c')
-rw-r--r-- | gcc/cp/typeck.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c index 378fc6b..c0927ef 100644 --- a/gcc/cp/typeck.c +++ b/gcc/cp/typeck.c @@ -2242,7 +2242,7 @@ build_component_ref (datum, component, basetype_path, protect) /* A field is const (volatile) if the enclosing object, or the field itself, is const (volatile). But, a mutable field is not const, even within a const object. */ - if (DECL_LANG_SPECIFIC (field) && DECL_MUTABLE_P (field)) + if (DECL_MUTABLE_P (field)) type_quals &= ~TYPE_QUAL_CONST; field_type = cp_build_qualified_type (field_type, type_quals); } |