Selectiv on/off-turning of warnings

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Thu Mar 23 00:18:00 GMT 2000


> 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


More information about the Gcc mailing list