]> granicus.if.org Git - clang/commit
When diagnosing inaccessible temporary destructors in decltype expressions, use
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 11 May 2012 22:20:10 +0000 (22:20 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 11 May 2012 22:20:10 +0000 (22:20 +0000)
commit2f68ca09ca8b5944fcab14578a161511afde406f
tree6623d78b2ba2ebb9205f0f33241368a6b948f217
parente2c60667d1bc29b7e148f9c9828dcbdbfc5b82b0
When diagnosing inaccessible temporary destructors in decltype expressions, use
the correct type and the correct source location in the diagnostic. Spotted by
Johannes Schaub!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156654 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaExprCXX.cpp
test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.type.simple/p5-cxx0x.cpp