[all-commits] [llvm/llvm-project] 06bd74: Fix implementation of [temp.param]p14's first sent...
Erich Keane via All-commits
all-commits at lists.llvm.org
Fri Mar 1 07:37:57 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 06bd74ba4ac5229f01b64772b49e025be5eb7b53
https://github.com/llvm/llvm-project/commit/06bd74ba4ac5229f01b64772b49e025be5eb7b53
Author: Erich Keane <ekeane at nvidia.com>
Date: 2024-03-01 (Fri, 01 Mar 2024)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/Sema/SemaTemplate.cpp
A clang/test/SemaCXX/GH83461.cpp
Log Message:
-----------
Fix implementation of [temp.param]p14's first sentence. (#83487)
The first sentence says:
If a template-parameter of a class template, variable template, or alias
template has a default template-argument, each subsequent
template-parameter shall either have a default template-argument
supplied or be a template parameter pack.
However, we were only testing for "not a function function template",
and referring to an older version of the standard. As far as I can tell,
CWG2032 added the variable-template, and the alias-template pre-dates
the standard on github.
This patch started as a bug fix for #83461 , but ended up fixing a
number of similar cases, so those are validated as well.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list