When deducing an integral template argument for a non-type template
parameter, keep the integral value exactly as it was in the source
code rather than trying to convert it to the type of the non-type
template parameter (which may still be dependent!). The value will
then be converted to the appropriate type once we check the resulting
template arguments. Fixes PR6707.

llvm-svn: 99611
1 file changed
tree: 8e54dae3831079bba638423d83083a2f109fdf26
  1. clang/
  2. compiler-rt/
  3. llvm/