[PATCH] D93962: [Sema] Fix the program state in reference initialization

2021-01-01 Thread Arthur O'Dwyer via Phabricator via cfe-commits
Quuxplusone added a comment. This could use some tests. (What's observably bad about the old code's behavior? does this patch fix that behavior?) Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D93962/new/ https://reviews.llvm.org/D93962 ___

[PATCH] D93962: [Sema] Fix the program state in reference initialization

2021-01-01 Thread Yang Fan via Phabricator via cfe-commits
nullptr.cpp created this revision. nullptr.cpp requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. According to [dcl.init.ref]p5: > A reference to type “cv1 T1” is initialized by an expression of type “cv2 T2” > as follows: > > — If the ref