Questions about a constant array reference in the C++ front end
Steven Bosscher
stevenb@suse.de
Sun May 8 19:45:00 GMT 2005
On Sunday 08 May 2005 16:47, Nathan Sidwell wrote:
> Kazu,
>
> > Then how do I know that an array is declared with const (or static
> > const)? When I looked at the CONSTRUCTOR stored in the DECL_INITIAL
> > of an array, I saw it with the TREE_STATIC flag set regardless of
> > whether the array is declared with const, so that's not useful to
> > determine whether the array is declared with const.
>
> cp_type_quals (type) & CP_QUAL_CONST
I believe Kazu is not looking at these constructors in the front
end, but in the middle-end. ;-)
Gr.
Steven
More information about the Gcc
mailing list