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: Require canonical type comparison for typedefs again.


On 10/20/2010 04:50 PM, Dodji Seketeli wrote:
+  if (TREE_PURPOSE (parm_desc)
+      && dependent_type_p (TREE_TYPE (TREE_PURPOSE (parm_desc))))
+    TREE_PURPOSE (parm_desc) =
+      tsubst_template_arg (TREE_PURPOSE (parm_desc), arglist,
+			   tf_warning_or_error, parm);

Using dependent_type_p here seems wrong; a template argument can involve template parameters even if it doesn't have a dependent type. Can we just drop that test?


Jason


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