Skip to content
  1. Mar 28, 2010
    • Douglas Gregor's avatar
      After performing template argument deduction for a function template, · d5cb1ddb
      Douglas Gregor authored
      check deduced non-type template arguments and template template
      arguments against the template parameters for which they were deduced,
      performing conversions as appropriate so that deduced template
      arguments get the same treatment as explicitly-specified template
      arguments. This is the bulk of PR6723.
      
      Also keep track of whether deduction of a non-type template argument
      came from an array bound (vs. anywhere else). With this information,
      we enforce C++ [temp.deduct.type]p17, which requires exact type
      matches when deduction deduces a non-type template argument from
      something that is not an array bound.
      
      Finally, when in a SFINAE context, translate the "zero sized
      arrays are an extension" extension diagnostic into a hard error (for
      better standard conformance), which was a minor part of PR6723.
      
      llvm-svn: 99734
      d5cb1ddb
  2. Mar 27, 2010
  3. Mar 26, 2010
Loading