]> granicus.if.org Git - clang/commit
There's no point in marking a declaration invalid just because it
authorDouglas Gregor <dgregor@apple.com>
Thu, 20 Oct 2011 17:58:49 +0000 (17:58 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 20 Oct 2011 17:58:49 +0000 (17:58 +0000)
commitcb8f951deacd251d9b3a73dc65f341477e039de1
treeb2f127630073333a8c1f2aa13658e54eb9611360
parentf89bc0500c74a590ff9e99aab75bcc22d05bc760
There's no point in marking a declaration invalid just because it
shadows a template parameter. Complain about the shadowing (or not,
under -fms-extensions), but don't invalidate the declaration. Merely
forget about the template parameter declaration.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142596 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/Sema.h
lib/Sema/SemaDecl.cpp
lib/Sema/SemaDeclCXX.cpp
lib/Sema/SemaTemplate.cpp