[cfe-dev] Variable length arrays are not permitted in C++

Ahmed Charles ahmedcharles at gmail.com
Wed Feb 17 11:27:22 PST 2010


On Wed, Feb 17, 2010 at 2:52 AM, Renato Golin <rengolin at systemcall.org>wrote:

> On 16 February 2010 18:46, Douglas Gregor <dgregor at apple.com> wrote:
> > I would be perfectly happy to have Clang produce errors for all of these
> cases, so that VLAs in C++ are restricted to the places where they work in
> C. A patch that correctly restricts VLAs to that subset, and downgrades the
> "variable length arrays are not permitted in C++" error to an ExtWarn, will
> be accepted.
>
> Still, shouldn't the message be "not supported yet" rather than "not
> permitted"?
>
>
It's an g++ extension rather than a C++ standard feature, hence why "not
permitted" is applicable.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100217/0614b4d4/attachment.html>


More information about the cfe-dev mailing list