)]}'
{
  "commit": "79802c5dcc043a515f429bb2bec7573b8537c32a",
  "tree": "71072d90ddd7604362cfd0deecab92e1093116f4",
  "parents": [
    "1e819bd95ebeefc1dc469daa1855ce005cb77822"
  ],
  "author": {
    "name": "Jason Merrill",
    "email": "jason@redhat.com",
    "time": "Tue Sep 28 10:02:04 2021 -0400"
  },
  "committer": {
    "name": "Jason Merrill",
    "email": "jason@redhat.com",
    "time": "Fri Oct 15 16:12:56 2021 -0400"
  },
  "message": "c++: array cv-quals and template specialization [PR101402]\n\nPRs 101402, 102033, etc. demonstrated that the fix for PR92010 wasn\u0027t\nhandling all cases of the CWG1001/1322 issue with parameter type qual\nstripping and arrays with templates.  The problem turned out to be in\ndetermine_specialization, which did an extra substitution without the 92010\nfix and then complained that the result didn\u0027t match.\n\nBut just removing that wrong/redundant code meant that we were accepting\nspecializations with different numbers of parameters, because the code in\nfn_type_unification that compares types in this case wasn\u0027t checking for\nlength mismatch.\n\nAfter fixing that, I realized that fn_type_unification couldn\u0027t tell the\ndifference between variadic and non-variadic function types, because the\nargs array doesn\u0027t include the terminal void we use to indicate non-variadic\nfunction type.  So I added it, and made the necessary adjustments.\n\nThanks to qingzhe \"nick\" huang \u003cnickhuang99@hotmail.com\u003e for the patch that\nled me to dig more into this, and the extensive testcases.\n\n\tPR c++/51851\n\tPR c++/101402\n\tPR c++/102033\n\tPR c++/102034\n\tPR c++/102039\n\tPR c++/102044\n\ngcc/cp/ChangeLog:\n\n\t* pt.c (determine_specialization): Remove redundant code.\n\t(fn_type_unification): Check for mismatched length.\n\t(type_unification_real): Ignore terminal void.\n\t(get_bindings): Don\u0027t stop at void_list_node.\n\t* class.c (resolve_address_of_overloaded_function): Likewise.\n\ngcc/testsuite/ChangeLog:\n\n\t* g++.dg/template/fnspec2.C: New test.\n\t* g++.dg/template/parm-cv1.C: New test.\n\t* g++.dg/template/parm-cv2.C: New test.\n\t* g++.dg/template/parm-cv3.C: New test.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "59611627d187d2834d680f772958cf42bbb78c8a",
      "old_mode": 33188,
      "old_path": "gcc/cp/class.c",
      "new_id": "f16e50b9de9d7dba8ebfffbdaf69365cbb09ff2c",
      "new_mode": 33188,
      "new_path": "gcc/cp/class.c"
    },
    {
      "type": "modify",
      "old_id": "009fe6db573f08b792c0a861a3a84024a90b7573",
      "old_mode": 33188,
      "old_path": "gcc/cp/pt.c",
      "new_id": "287cf4ce9d06a009473f90052d3b10e214501332",
      "new_mode": 33188,
      "new_path": "gcc/cp/pt.c"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "7a4b1012d899c37e2e72c6d6649d6596da3e1afc",
      "new_mode": 33188,
      "new_path": "gcc/testsuite/g++.dg/template/fnspec2.C"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "2677992770d340cc1adcc15143f7166663ead1c9",
      "new_mode": 33188,
      "new_path": "gcc/testsuite/g++.dg/template/parm-cv1.C"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "cd40e8680179f4074da948e7a5ce8d01e69e4816",
      "new_mode": 33188,
      "new_path": "gcc/testsuite/g++.dg/template/parm-cv2.C"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "1b69c3b2a48ac9cc0766c6a5192388314c1e8e23",
      "new_mode": 33188,
      "new_path": "gcc/testsuite/g++.dg/template/parm-cv3.C"
    }
  ]
}
