diff options
| author | Douglas Gregor <dgregor@apple.com> | 2009-06-12 18:26:56 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2009-06-12 18:26:56 +0000 |
| commit | f67875d5addf36b951ad37fb04509ab2b572c88a (patch) | |
| tree | af1174dcef4ef448dadcb8123c45c214c7701506 /lib/CodeGen/CodeGenModule.cpp | |
| parent | 5e300d1a8e37f24e71f8cf204b982f20f85cf91a (diff) | |
| download | clang-f67875d5addf36b951ad37fb04509ab2b572c88a.tar.gz clang-f67875d5addf36b951ad37fb04509ab2b572c88a.tar.bz2 clang-f67875d5addf36b951ad37fb04509ab2b572c88a.tar.xz | |
Improve template argument deduction to keep track of why template
argument deduction failed. For example, given
template<typename T> struct is_same<T, T> { ... };
template argument deduction will fail for is_same<int, float>, and now
reports enough information
Right now, we don't do anything with this extra information, but it
can be used for informative diagnostics that say, e.g., "template
argument deduction failed because T was deduced to 'int' in one
context and 'float' in another".
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73237 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
