[all-commits] [llvm/llvm-project] 3d2ab2: [clang] Improve diagnostics for uninitialized cons...

Timm Bäder via All-commits all-commits at lists.llvm.org
Thu Aug 18 23:06:57 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3d2ab237f157908d595581cfbeeb0a9ff33bb249
      https://github.com/llvm/llvm-project/commit/3d2ab237f157908d595581cfbeeb0a9ff33bb249
  Author: Timm Bäder <tbaeder at redhat.com>
  Date:   2022-08-19 (Fri, 19 Aug 2022)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Sema/SemaDecl.cpp
    M clang/lib/Sema/SemaInit.cpp
    M clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/p1.cpp
    M clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/p9.cpp
    M clang/test/SemaCXX/constant-expression-cxx11.cpp

  Log Message:
  -----------
  [clang] Improve diagnostics for uninitialized constexpr variables

Instead of complaining about default initialization, tell users that
constexpr variables need to be initialized by a constant expression.

Differential Revision: https://reviews.llvm.org/D131662




More information about the All-commits mailing list