]> granicus.if.org Git - clang/commit
Lay the ground work for resoving PR7047. This doesn't actually fix it because
authorChandler Carruth <chandlerc@gmail.com>
Sat, 10 Jul 2010 12:30:03 +0000 (12:30 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sat, 10 Jul 2010 12:30:03 +0000 (12:30 +0000)
commit999194739e3a2d35b5a1e563ba514cba8b4ab252
tree1a63c43454de19c71089c721ac31eb4c52a30e6d
parent6d00c1365dd3601f6d93bbda9162913c57ae788f
Lay the ground work for resoving PR7047. This doesn't actually fix it because
default arguments to template parameters don't have a DeclContext when
instantiated, and so we can't detect that we're in an instantiation context as
opposed to the definition context. However, it fixes the more commonly-occuring
cases in TMP code that use devolve to this type of tautology after
substitution.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108044 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaExpr.cpp
test/SemaTemplate/self-comparison.cpp [new file with mode: 0644]