[clang] Allow LifetimeExtendedTemporary to have no access specifier
authorAdam Czachorowski <adamcz@google.com>
Fri, 15 Jan 2021 17:37:25 +0000 (18:37 +0100)
committerAdam Czachorowski <adamcz@google.com>
Mon, 18 Jan 2021 18:19:57 +0000 (19:19 +0100)
commit196cc96f9a643d1cb828f48ef15ec30d0de24df7
tree54b4566d4a8586687d1f352e46c1b96679d4f525
parent23b0ab2acb424e3e74722c0183e5c5ac84e6ea4c
[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
clang/lib/AST/DeclBase.cpp
clang/test/PCH/cxx-reference.h