]> gcc.gnu.org Git - gcc.git/blobdiff - gcc/cp/typeck.c
Compare ARGUMENT_PACKS [pr93933]
[gcc.git] / gcc / cp / typeck.c
index 42d0b47cf1bf97b038364537cb7a658b5f663979..2a3243f3e813df6e542808c8b3301a8bb236c036 100644 (file)
@@ -1485,6 +1485,10 @@ comptypes (tree t1, tree t2, int strict)
 {
   gcc_checking_assert (t1 && t2);
 
+  /* TYPE_ARGUMENT_PACKS are not really types.  */
+  gcc_checking_assert (TREE_CODE (t1) != TYPE_ARGUMENT_PACK
+                      && TREE_CODE (t2) != TYPE_ARGUMENT_PACK);
+
   if (strict == COMPARE_STRICT && comparing_specializations
       && (t1 != TYPE_CANONICAL (t1) || t2 != TYPE_CANONICAL (t2)))
     /* If comparing_specializations, treat dependent aliases as distinct.  */
This page took 0.036357 seconds and 5 git commands to generate.