This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Questions about a constant array reference in the C++ front end
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