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
a crash when deserializing the AST for this: typedef char (&R); extern R &r; llvm-svn: 129358