cp-tree.h (struct lang_type): Added has_mutable flag.
authorNathan Sidwell <nathan@acm.org>
Sat, 16 Jan 1999 16:31:12 +0000 (16:31 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Sat, 16 Jan 1999 16:31:12 +0000 (11:31 -0500)
commita7a7710d423cba8feb795c3e626df5ce4075cebb
tree8f9d4e6c38db1bc57ed11c767e476cf0f914efb7
parent854b494a9ef17692e2daabf8fa0c478161becd41
cp-tree.h (struct lang_type): Added has_mutable flag.

* cp-tree.h (struct lang_type): Added has_mutable flag.
(CLASSTYPE_HAS_MUTABLE): New macro to access it.
(TYPE_HAS_MUTABLE_P): New macro to read it.
(cp_has_mutable_p): Prototype for new function.
* class.c (finish_struct_1): Set has_mutable from members.
* decl.c (cp_finish_decl): Clear decl's TREE_READONLY flag, if
it contains a mutable.
* typeck.c (cp_has_mutable_p): New function.
Fixes g++.other/mutable1.C

From-SVN: r24701
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/typeck.c