This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Merge C++ conversion into trunk (5/6 - double_int rewrite)
- From: Jakub Jelinek <jakub at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Diego Novillo <dnovillo at google dot com>, Lawrence Crowl <crowl at google dot com>, Richard Guenther <rguenther at suse dot de>, Richard Henderson <rth at redhat dot com>
- Date: Mon, 13 Aug 2012 08:36:24 +0200
- Subject: Re: Merge C++ conversion into trunk (5/6 - double_int rewrite)
- References: <20120812201515.GA14973@google.com> <alpine.DEB.2.02.1208122330461.3253@laptop-mg.saclay.inria.fr>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Sun, Aug 12, 2012 at 11:30:59PM +0200, Marc Glisse wrote:
> >+inline double_int &
> >+double_int::operator ++ ()
> >+{
> >+ *this + double_int_one;
>
> *this += double_int_one;
> would be less confusing.
Do you mean that *this + double_int_one; alone also works, just is
confusing? That would mean operator+ has side-effects, right?
Jakub