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:

| On Friday 17 December 2004 03:06, Gabriel Dos Reis wrote:
| > | 	* init.c (build_zero_init): max_index is the number of
| > | 	elements, minus 1.
| >
| > What are the design rationale behind this choice
| 
| That's just C/C++ I guess.  I don't think it's very pretty, either,
| but the C style array upper bound is exclusive, so you have to do
| this :-/

I was unclwar.  I wanted to understand why TYPE_DOMAIN for an
array is designed that way.  

Thanks,

-- Gaby


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