Re: funny problem with g++

2005-12-10 Thread Jonathan Wakely
On Wed, Dec 07, 2005 at 11:50:49PM +, Tristan Wibberley wrote: > > IMHO, this is a good extension, at least until boost::array gets > standardised. #include in GCC 4.0 jon

Re: funny problem with g++

2005-12-07 Thread Tristan Wibberley
Morten Welinder wrote: >>>This is a joke, you are kidding, right ? >> >>No, we're not kidding. RTFM: Section, 5.12 Arrays of Length Zero > > > He is kind of right, though. Outside struct (or perhaps union), > zero-sized arrays > make little sense and could be rejected. Or else I am missing som

Re: funny problem with g++

2005-12-07 Thread Joe Buck
On Wed, Dec 07, 2005 at 11:43:31PM +0200, Michael Veksler wrote: > Quoting Richard Guenther <[EMAIL PROTECTED]>: > > > On 12/7/05, Morten Welinder <[EMAIL PROTECTED]> wrote: > > > He is kind of right, though. Outside struct (or perhaps union), > > > zero-sized arrays > > > make little sense and c

Re: funny problem with g++

2005-12-07 Thread Michael Veksler
Quoting Richard Guenther <[EMAIL PROTECTED]>: > On 12/7/05, Morten Welinder <[EMAIL PROTECTED]> wrote: > > He is kind of right, though. Outside struct (or perhaps union), > > zero-sized arrays > > make little sense and could be rejected. Or else I am missing something > too. > > Well, as nearly

Re: funny problem with g++

2005-12-07 Thread Richard Guenther
On 12/7/05, Morten Welinder <[EMAIL PROTECTED]> wrote: > >> This is a joke, you are kidding, right ? > > No, we're not kidding. RTFM: Section, 5.12 Arrays of Length Zero > > He is kind of right, though. Outside struct (or perhaps union), > zero-sized arrays > make little sense and could be reject

Re: funny problem with g++

2005-12-07 Thread Morten Welinder
>> This is a joke, you are kidding, right ? > No, we're not kidding. RTFM: Section, 5.12 Arrays of Length Zero He is kind of right, though. Outside struct (or perhaps union), zero-sized arrays make little sense and could be rejected. Or else I am missing something too. M.

Re: funny problem with g++

2005-12-07 Thread Andrew Haley
Tommy Vercetti writes: > > On 2005-12-07, at 16:26, Richard Guenther wrote: > > > On 12/7/05, Tommy Vercetti <[EMAIL PROTECTED]> wrote: > >> Hi there > >> > >> We had funny issue here lately. Someone wanted to create table that > >> had 0 elements in C++, for instance this code: > > > >

Re: funny problem with g++

2005-12-07 Thread Tommy Vercetti
On 2005-12-07, at 16:26, Richard Guenther wrote: On 12/7/05, Tommy Vercetti <[EMAIL PROTECTED]> wrote: Hi there We had funny issue here lately. Someone wanted to create table that had 0 elements in C++, for instance this code: This is a gcc extension. Try g++ -pedantic This is a joke, yo

Re: funny problem with g++

2005-12-07 Thread Richard Guenther
On 12/7/05, Tommy Vercetti <[EMAIL PROTECTED]> wrote: > Hi there > > We had funny issue here lately. Someone wanted to create table that > had 0 elements in C++, for instance this code: This is a gcc extension. Try g++ -pedantic Richard. > int main() > { > char a[0]; > char b[