This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: TREE_UNCHANGING?


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]