forked from OSchip/llvm-project
debad6460b
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. This reinstates r360499, reverted in r360531. llvm-svn: 360538 |
||
---|---|---|
.. | ||
p2-0x.cpp | ||
p3-0x-nowarn.cpp | ||
p3-0x.cpp | ||
p5-0x.cpp | ||
p6.cpp |