[PATCH] D18823: Implementation of VlA of GNU C++ extension

Doug Gregor via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 11 23:04:57 PDT 2016


doug.gregor added a comment.

I think it's completely reasonable to implement support for VLAs as a GNU C++ extension. We did go through a phase where we tried to avoid implementing VLAs in C++ because we considered them to be a poor feature in C++. However, their use was wide-spread enough that we changed course and enabled the implementation for POD types in C++. That got us most of the compatibility without a significant amount of effort, whereas we didn't have the infrastructure to handle non-PODs at that time. It wasn't a statement of intent---it just wasn't important enough to implement at the time. Looks like rjmccall's work on VLAs containing ARC-qualified pointers got us most of the way there, so it makes sense to generalize it to non-POD types.


http://reviews.llvm.org/D18823





More information about the cfe-commits mailing list