From d87aab939a07d832b226fc839b981d2b3be36802 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Tue, 17 Jul 2018 22:24:09 +0000 Subject: Restructure checking for, and warning on, lifetime extension. This change implements C++ DR1696, which makes initialization of a reference member of a class from a temporary object ill-formed. The standard wording here is imprecise, but we interpret it as meaning that any time a mem-initializer would result in lifetime extension, the program is ill-formed. This reinstates r337226, reverted in r337255, with a fix for the InitializedEntity alignment problem that was breaking ARM buildbots. llvm-svn: 337329 --- clang/www/cxx_dr_status.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/www') diff --git a/clang/www/cxx_dr_status.html b/clang/www/cxx_dr_status.html index 93d4ee93fb3..04dd0eae1c2 100644 --- a/clang/www/cxx_dr_status.html +++ b/clang/www/cxx_dr_status.html @@ -9991,7 +9991,7 @@ and POD class 1696 CD4 Temporary lifetime and non-static data member initializers - Unknown + SVN 1697 @@ -10705,7 +10705,7 @@ and POD class 1815 CD4 Lifetime extension in aggregate initialization - Unknown + No 1816 -- cgit v1.2.3