This is the mail archive of the gcc@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: Undefined behavior in genautomata.c?


----Original Message----
>From: gdr@integrable-solutions.net
>Sent: 19 September 2005 14:01

> "Dave Korn" <dave.korn@artimi.com> writes:
> 
> [...]
> 
>>   I've seen this trick used again and again and again, and *I* haven't
>> _ever_ seen anyone use anything except an array size of [1] in this
>> place. 
> 
> [...]
> 
>>   Have you?
> 
> Yes.  It wasn't attempt at pedantism.
> 
> -- Gaby


  Nono, I didn't assume so, I just wanted to be sure we weren't talking at
cross purposes.  And yes, now you mention it, your example of using a char
array sized by sizeof() the objects that are going to be written of it is
something I've seen before.  In fact, I think I've even done it myself!


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


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