This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH for c++/91264 - detect modifying const objects in constexpr
- From: Marek Polacek <polacek at redhat dot com>
- To: Paolo Carlini <paolo dot carlini at oracle dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Jason Merrill <jason at redhat dot com>
- Date: Tue, 6 Aug 2019 15:44:06 -0400
- Subject: Re: C++ PATCH for c++/91264 - detect modifying const objects in constexpr
- References: <20190731192659.GP32749@redhat.com> <736a18cd-8fd2-2c37-db3f-a334555897e1@oracle.com>
On Tue, Aug 06, 2019 at 09:38:35PM +0200, Paolo Carlini wrote:
> Hi,
>
> On 31/07/19 21:26, Marek Polacek wrote:
> > +static void
> > +modifying_const_object_error (tree expr, tree obj)
> > +{
> > + location_t loc = cp_expr_loc_or_loc (expr, input_location);
>
> Nit: now we have cp_expr_loc_input_loc
Ah yeah, and I was meaning to update it! Will fix.
Marek