This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: mutable members in global const objects
- To: Jason Merrill <jason at cygnus dot com>, Martin von Loewis <martin at mira dot isdn dot cs dot tu-berlin dot de>, egcs at cygnus dot com, nathan at cs dot bris dot ac dot uk
- Subject: Re: mutable members in global const objects
- From: Jamie Lokier <egcs at tantalophile dot demon dot co dot uk>
- Date: Wed, 5 Aug 1998 00:47:39 +0100
- References: <35C586FE.1167@cs.bris.ac.uk> <199808032035.WAA06599.cygnus.egcs@mira.isdn.cs.tu-berlin.de> <u9zpdlfd1r.fsf@yorick.cygnus.com>
On Mon, Aug 03, 1998 at 11:58:56PM -0700, Jason Merrill wrote:
> Nah, all that needs to happen is to avoid setting TREE_READONLY on
> VAR_DECLs with mutable members.
That's exactly what my patch does, by adding a flag TREE_MUTABLE to
track if a type is read only but has mutable members, or members
themselves having mutable members etc.
-- Jamie