[all-commits] [llvm/llvm-project] 00068c: Improve diagnostics for constant evaluation that f...

Richard Smith via All-commits all-commits at lists.llvm.org
Wed Jul 8 18:14:49 PDT 2020


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

  Changed paths:
    M clang/include/clang/Basic/DiagnosticASTKinds.td
    M clang/lib/AST/ExprConstant.cpp
    M clang/test/CXX/expr/expr.const/p2-0x.cpp
    M clang/test/CXX/temp/temp.res/temp.dep/temp.dep.constexpr/p2.cpp
    M clang/test/SemaCXX/constant-expression-cxx11.cpp
    M clang/test/SemaCXX/constant-expression-cxx1y.cpp
    M clang/test/SemaCXX/cxx1y-variable-templates_in_class.cpp

  Log Message:
  -----------
  Improve diagnostics for constant evaluation that fails because a
variable's initializer is not known.

The hope is that a better diagnostic for this case will reduce the rate
at which duplicates of non-bug PR41093 are reported.




More information about the All-commits mailing list