llvm-project/clang/test/CXX/basic
Erik Pilkington 090dd647d9 [Sema] Fold VLAs to constant arrays in a few more contexts
552c6c2 removed support for promoting VLAs to constant arrays when the bounds
isn't an ICE, since this can result in miscompiling a conforming program that
assumes that the array is a VLA. Promoting VLAs for fields is still supported,
since clang doesn't support VLAs in fields, so no conforming program could have
a field VLA.

This change is really disruptive, so this commit carves out two more cases
where we promote VLAs which can't miscompile a conforming program:

 - When the VLA appears in an ivar -- this seems like a corollary to the field thing
 - When the VLA has an initializer -- VLAs can't have an initializer

Differential revision: https://reviews.llvm.org/D90871
2020-12-04 10:03:23 -05:00
..
basic.def
basic.def.odr C++ DR712 and others: handle non-odr-use resulting from an lvalue-to-rvalue conversion applied to a member access or similar not-quite-trivial lvalue expression. 2019-06-14 17:46:37 +00:00
basic.link [c++2a] Add semantic support for private module fragments. 2019-04-18 21:12:54 +00:00
basic.lookup [Driver] Flip the CC1 default of -fdiagnostics-show-option 2020-03-31 21:59:27 -07:00
basic.scope PR48002: Fix injection of elaborated-type-specifiers within local 2020-10-28 14:29:45 -07:00
basic.start
basic.stc/basic.stc.dynamic
basic.types [Sema] Fold VLAs to constant arrays in a few more contexts 2020-12-04 10:03:23 -05:00