On Tue, 9 Sep 2025, Jakub Jelinek wrote:
> On Wed, Aug 27, 2025 at 01:54:23PM +0200, Jason Merrill wrote:
> > On 8/27/25 4:13 AM, Jakub Jelinek wrote:
> > > When looking at constexpr references, I've noticed staticp handles
> > > COMPONENT_REFs and ARRAY_REFs (the latter if the index is INTEGER_CST),
> > > but not {REAL,IMAG}PART_EXPR. I think that is incorrect and causes
> > > rejection of constexpr (for C++) or static const (for C) addresses
> > > of __real__ or __imag__ parts of static vars.
> > >
> > > Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?
> >
> > Makes sense to me, OK if no objection from C.
>
> Joseph, is this ok also from the C FE POV?
> https://gcc.gnu.org/pipermail/gcc-patches/2025-August/693387.html
Yes.
--
Joseph S. Myers
[email protected]