Move detection of reference members binding to temporaries from building of
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 12 Jun 2013 21:51:50 +0000 (21:51 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 12 Jun 2013 21:51:50 +0000 (21:51 +0000)
commite3b28bc36359d28d0a2520a5a347f9eb5fde8863
treeb3fb02de51529da985264a5f68a5154594040b76
parent0c24b20d337d1e4809435d64794f5484a4aabf73
Move detection of reference members binding to temporaries from building of
CXXCtorInitializers to the point where we perform the questionable lifetime
extension. This exposed a selection of false negatives in the warning.

llvm-svn: 183869
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaDeclCXX.cpp
clang/lib/Sema/SemaInit.cpp
clang/test/CXX/special/class.copy/p11.0x.copy.cpp
clang/test/CXX/special/class.copy/p11.0x.move.cpp
clang/test/CXX/special/class.ctor/p5-0x.cpp
clang/test/CXX/temp/temp.param/p5.cpp
clang/test/SemaCXX/warn-dangling-field.cpp