Check for matching template-parameter-lists when merging template declarations.