summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDeclCXX.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-12-03 17:10:37 +0000
committerDouglas Gregor <dgregor@apple.com>2009-12-03 17:10:37 +0000
commit580cd4a23ec4be39c765a245ed0cdc9e8c7799cd (patch)
tree2c378b3bb375600bf9df66d91ac3c48ca1cd2220 /clang/lib/Sema/SemaDeclCXX.cpp
parent5f498834881dd4c36eadf903359b81ce63f731c9 (diff)
downloadbcm5719-llvm-580cd4a23ec4be39c765a245ed0cdc9e8c7799cd.tar.gz
bcm5719-llvm-580cd4a23ec4be39c765a245ed0cdc9e8c7799cd.zip
When we're building a CXXExprWithTemporaries, only include those
temporaries that are within our current evaluation context. That way, nested evaluation contexts (e.g., within a sizeof() expression) won't see temporaries from outer contexts. Also, make sure to push a new evaluation context when instantiating the initializer of a variable; this may be an unevaluated context or a potentially-evaluated context, depending on whether it's an in-class initializer or not. Fixes PR5672. llvm-svn: 90460
Diffstat (limited to 'clang/lib/Sema/SemaDeclCXX.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud