funny problem with g++
Richard Guenther
richard.guenther@gmail.com
Wed Dec 7 21:40:00 GMT 2005
On 12/7/05, Morten Welinder <mwelinder@gmail.com> 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 something too.
Well, as nearly all gcc language extensions, the extension specification
is not a formal specification, but more like handwaving ...
Rather than restricting the extension, we should consider deprecating it
(for C++!) in 4.1 and remove it from 4.2. I see no use for it in C++ code
and recent actions were in favor of removing C++ language extensions.
Richard.
More information about the Gcc
mailing list