class.c (check_field_decls): Only check C_TYPE_FIELDS_READONLY for class types.
authorMark Mitchell <mark@codesourcery.com>
Thu, 30 Jan 2003 16:02:58 +0000 (16:02 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Thu, 30 Jan 2003 16:02:58 +0000 (16:02 +0000)
commit5552b43ca5b26f94760cfb94f59cd6b5d60f1c7d
treed892f0dae664670d38fe018c10299cee82931af6
parente43dd89d8061e68695c871f7f6b044012dfcd82b
class.c (check_field_decls): Only check C_TYPE_FIELDS_READONLY for class types.

* class.c (check_field_decls): Only check C_TYPE_FIELDS_READONLY
for class types.
* cp-tree.h (C_TYPE_FIELDS_READONLY): Use a lang-specific bit
rather than TYPE_LANG_FLAG_0.
(TYPE_BUILT_IN): Remove.
(TYPE_DEPENDENT_P): New macro.
(TYPE_DEPENDENT_P_VALID): Likewise.
(lang_type_class): Add fields_readonly.
* decl.c (record_builtin_type): Don't set TYPE_BUILT_IN.
* pt.c (dependent_type_p_r): New function, split out from ...
(dependent_type_p): ... here.  Memoize results.
* search.c (dependent_base_p): Use dependent_type_p, not
uses_template_parms.
* typeck.c (build_modify_expr): Only check C_TYPE_FIELDS_READONLY
for class types.

From-SVN: r62143
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/pt.c
gcc/cp/search.c
gcc/cp/typeck.c