This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C++] More fun with constructors and latent bugs


Steven Bosscher <stevenb@suse.de> writes:

| Hi,
| 
| This is another one I noticed while working on PR18191.
| Untested, perhaps a C++ maintainer can pick this up.
| 
| Gr.
| Steven
| 
| 	* init.c (build_zero_init): max_index is the number of
| 	elements, minus 1.

What are the design rationale behind this choice (Steven, I'm not
sayint you're at fault).  That is a serious question.  It looks to me
that this playing with build2(MINUS_EXPR/PLUS_EXPR)  spreads over the
compiler, either at semantics analysis time or at unparsing time...

-- Gaby


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]