[all-commits] [llvm/llvm-project] 196cc9: [clang] Allow LifetimeExtendedTemporary to have no...

Adam Czachorowski via All-commits all-commits at lists.llvm.org
Mon Jan 18 10:30:03 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 196cc96f9a643d1cb828f48ef15ec30d0de24df7
      https://github.com/llvm/llvm-project/commit/196cc96f9a643d1cb828f48ef15ec30d0de24df7
  Author: Adam Czachorowski <adamcz at google.com>
  Date:   2021-01-18 (Mon, 18 Jan 2021)

  Changed paths:
    M clang/lib/AST/DeclBase.cpp
    M clang/test/PCH/cxx-reference.h

  Log Message:
  -----------
  [clang] Allow LifetimeExtendedTemporary to have no access specifier

The check only runs in debug mode during serialization, but
assert()-fail on:
  struct S { const int& x = 7; };
in C++ mode.

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




More information about the All-commits mailing list