This is the mail archive of the gcc-bugs@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: Unsolicited warnings


> 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

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