llvm-project/clang/include
Richard Smith d05df0ef43 Reject attempts to call non-static member functions on objects outside
their lifetime in constant expressions.

This is undefined behavior per [class.cdtor]p2.

We continue to allow this for objects whose values are not visible
within the constant evaluation, because there's no way we can tell
whether the access is defined or not, existing code relies on the
ability to make such calls, and every other compiler allows such
calls.

llvm-svn: 360499
2019-05-11 02:00:06 +00:00
..
clang Reject attempts to call non-static member functions on objects outside 2019-05-11 02:00:06 +00:00
clang-c [libclang] Forward isInline for NamespaceDecl to libclang 2019-05-10 13:58:34 +00:00
CMakeLists.txt