[all-commits] [llvm/llvm-project] 746b8c: Basic support for flexible array members in consta...

Richard Smith via All-commits all-commits at lists.llvm.org
Mon Jul 13 16:58:14 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 746b8c400bd3f975b49f4092aa6ecd30ade7cfa5
      https://github.com/llvm/llvm-project/commit/746b8c400bd3f975b49f4092aa6ecd30ade7cfa5
  Author: Richard Smith <richard at metafoo.co.uk>
  Date:   2020-07-13 (Mon, 13 Jul 2020)

  Changed paths:
    M clang/lib/AST/ExprConstant.cpp
    M clang/test/SemaCXX/constant-expression-cxx11.cpp

  Log Message:
  -----------
  Basic support for flexible array members in constant evaluation.

We don't allow runtime-sized flexible array members, nor initialization
of flexible array members, but it seems reasonable to support the most
basic case where the flexible array member is empty.




More information about the All-commits mailing list