const char wd[6] = "Wednes", is that legal?

2010-11-30 Thread Joakim Tjernlund
gcc 4.4.5, powerpc32 does not fail const char wd[6] = "Wednes"; even though wd only has room for 6 chars. Is this intended? Jocke

Re: const char wd[6] = "Wednes", is that legal?

2010-11-30 Thread Axel Freyn
Hi Joakim, On Tue, Nov 30, 2010 at 03:40:12PM +0100, Joakim Tjernlund wrote: > gcc 4.4.5, powerpc32 does not fail > const char wd[6] = "Wednes"; > even though wd only has room for 6 chars. Is this intended? Which language are you using? ;-) In C++, it's forbidden (there has to be enough space for