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]

Re: Selectiv on/off-turning of warnings


> AFAIK variable-sized arrays are an extension of gcc. I have tried to put
> "__extension__" in front of "char_type a[n];", but the warning remains.

Could you please report this as a bug? I tried to come up with an
example showing the error, but couldn't.

> I would wonder if such minor technical details can influence the
> decision about importing such an option...

Well, there never was anything to import, so it is hard to tell
whether it would influence a decision. As I said, the primary reason
for the feature not being there is that it was never implemented;
please have a look at

http://gcc.gnu.org/cgi-bin/fom.cgi?file=12

Most people trying to get that feature had been following the
"convince compiler authors" route, and they failed so far because
every proposal had "minor technical problems". Apparently, none of the
authors is willing to invest any amount of time for adding a #pragma,
if they think pragmas are a stupid idea to begin with. In case you
write a patch for gcc, please send it to gcc-patches@gcc.gnu.org.

Regards,
Martin

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