diff options
author | Francois Pichet <pichet2000@gmail.com> | 2011-09-22 22:14:56 +0000 |
---|---|---|
committer | Francois Pichet <pichet2000@gmail.com> | 2011-09-22 22:14:56 +0000 |
commit | 81345183314316f56d62f927f0394d6b431a64f2 (patch) | |
tree | 96f558f83d75002523b6e0dd4ed5c84c37115054 /lldb/source/Interpreter/CommandObject.cpp | |
parent | dcae044a10dc3ec6237a2dd659ee67209abf5ae5 (diff) | |
download | bcm5719-llvm-81345183314316f56d62f927f0394d6b431a64f2.tar.gz bcm5719-llvm-81345183314316f56d62f927f0394d6b431a64f2.zip |
[microsoft] Fix a bug in -fdelayed-template-parsing mode where we were not reentering the delayed function context correctly. The problem was that all template params were reintroduced inside the same scope. So if we had a situation where we had 2 template params with the same name at different scope then clang would generate an error about ambiguous name.
The solution is to create a new ParseScope(Scope::TemplateParamScope) for each template scope that we want to reenter. (from the outmost to the innermost scope)
This fixes some errors when parsing MFC code with clang.
llvm-svn: 140344
Diffstat (limited to 'lldb/source/Interpreter/CommandObject.cpp')
0 files changed, 0 insertions, 0 deletions