[all-commits] [llvm/llvm-project] 08128f: [clang] Make member var invalid when static initia...

Adam Czachorowski via All-commits all-commits at lists.llvm.org
Tue Aug 3 02:58:32 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 08128fe7059e20b3f97ae5abbdeff2e6f6c711ed
      https://github.com/llvm/llvm-project/commit/08128fe7059e20b3f97ae5abbdeff2e6f6c711ed
  Author: Adam Czachorowski <adamcz at google.com>
  Date:   2021-08-03 (Tue, 03 Aug 2021)

  Changed paths:
    M clang/lib/Parse/ParseDeclCXX.cpp
    A clang/test/AST/ast-dump-undeduced-expr.cpp
    M clang/test/SemaCXX/crash-auto-36064.cpp
    M clang/test/SemaCXX/cxx11-crashes.cpp

  Log Message:
  -----------
  [clang] Make member var invalid when static initializer is invalid.

Previously we would show an error, but keep the member, and also the
CXXRrecordDecl, valid. This could lead to crashes when attempting to
access the record layout or size.

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




More information about the All-commits mailing list