This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: TREE_UNCHANGING?
- From: Jason Merrill <jason at redhat dot com>
- To: Daniel Berlin <dberlin at dberlin dot org>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 09 May 2002 09:35:47 +0100
- Subject: Re: TREE_UNCHANGING?
- References: <Pine.LNX.4.44.0205090015540.769-100000@dberlin.org>
>>>>> "Daniel" == Daniel Berlin <dberlin@dberlin.org> writes:
> BTW, according to the manual, your function isn't supposed to be declared
> const.
> In fact, it emphasizes it:
> @cindex pointer arguments
> Note that a function that has pointer arguments and examines the data
> pointed to must @emph{not} be declared @code{const}.
Yes, it only works in this case because we know that the vtable pointer
doesn't change.
Jason