Go to file
Richard Smith 593d6a168f When merging two deduced non-type template arguments for the same parameter,
fail the merge if the arguments have different types (except if one of them was
deduced from an array bound, in which case take the type from the other).

This is correct because (except in the array bound case) the type of the
template argument in each deduction must match the type of the parameter, so at
least one of the two deduced arguments must have a mismatched type.

This is necessary because we would otherwise lose the type information for the
discarded template argument in the merge, and fail to diagnose the mismatch.

In order to power this, we now properly retain the type of a deduced non-type
template argument deduced from a declaration, rather than giving it the type of
the template parameter; we'll convert it to the template parameter type when
checking the deduced arguments.

llvm-svn: 290399
2016-12-23 01:30:39 +00:00
clang When merging two deduced non-type template arguments for the same parameter, 2016-12-23 01:30:39 +00:00
clang-tools-extra [clang-tidy] cppcoreguidelines-slicing: display discarded state size in bytes 2016-12-22 14:12:31 +00:00
compiler-rt [compiler-rt] Define COMMON_INTERCEPT_FUNCTION_MEMCPY for tsan and esan 2016-12-23 01:08:31 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc Fix build since r286752. 2016-11-14 16:06:33 +00:00
libcxx [CMake] Fix issue reported on sanitizer bots 2016-12-17 21:28:24 +00:00
libcxxabi [libc++abi] Mark failing test on Darwin as XFAIL 2016-12-13 02:43:04 +00:00
libunwind EHABI: mark some functions as exported 2016-11-17 23:53:35 +00:00
lld [CMake] Add install target for the lld tool 2016-12-23 00:22:47 +00:00
lldb Fix a couple of incorrect format string warnings 2016-12-22 19:15:07 +00:00
llgo [llgo] Remove support for LLVM attributes 2016-12-06 19:22:04 +00:00
llvm Don't consider allocsize functions to be allocation functions. 2016-12-23 01:18:09 +00:00
openmp Fix for the __kmpc_global_num_threads function to return the value of the __kmp_all_nth global var. 2016-12-21 21:20:20 +00:00
parallel-libs [Axccel] Remove -Wno-missing-braces in build 2016-12-19 21:34:07 +00:00
polly Update isl to isl-0.18-9-gd4734f3 2016-12-22 23:08:57 +00:00