Unsolicited warnings

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


> While compiling the code shown below, g++ gives out a warning
> "straits.h:86: warning: ANSI C++ forbids variable-size array `a'" whose
> origin I can not understand and which I like to suppress. AFAIK
> variable-sized arrays are an extension and should not be criticized
> there. I have tried to prefix straits.h:86 with __extension__ too but it
> doesn't help.

Thanks for your bug report. I've put two PRs into GNATS; one for the
problem in straits.h, another one that __extension__ in templates
doesn't work.

Regards,
Martin


More information about the Gcc-bugs mailing list