On 12/21/2012 07:35 AM, Dodji Seketeli wrote:
    else if (TREE_TYPE (t)
           && INTEGRAL_OR_ENUMERATION_TYPE_P (TREE_TYPE (t))
-          && !TREE_CONSTANT (t))
+          && !TREE_CONSTANT (t)
+          /* Class template and alias template arguments should be OK.  */
+          && !DECL_TYPE_TEMPLATE_P (t))

Instead, let's add a previous else if to catch template template arguments (and do nothing) so that when we hit this else if, we know we're dealing with a non-type argument.

Jason

Reply via email to