https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122083

--- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #9)
> (In reply to Andrew Pinski from comment #8)
> > The other issue is SRA is Disqualifying due to D.8570 being const but since
> > it is a local const that does not matter.
> > 
> > ! Disqualifying D.8570 - Encountered a store to a read-only decl.
> > 
> > Let me see if I can fix that part up too.
> 
> Or maybe during gimplification we should remove the TREE_READONLY from local
> (non-parm) decls since it does not mean anything.

I filed PR 122154 for the SRA issue. it does not block getting the warning
correct though so I will let someone else figure that out.

Reply via email to