This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] PR c++/52343 - error with alias template as template template argument


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]