diff options
author | Erich Keane <ekeane@nvidia.com> | 2024-03-01 07:27:06 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-01 07:27:06 -0800 |
commit | 06bd74ba4ac5229f01b64772b49e025be5eb7b53 (patch) | |
tree | 78cd0e1b2dab83fcb0b8b0f1f4927093db988fb1 /llvm/lib/Bitcode/Reader/MetadataLoader.cpp | |
parent | a038f9758e02812803b7efce10ecf784f9842bbb (diff) | |
download | llvm-06bd74ba4ac5229f01b64772b49e025be5eb7b53.zip llvm-06bd74ba4ac5229f01b64772b49e025be5eb7b53.tar.gz llvm-06bd74ba4ac5229f01b64772b49e025be5eb7b53.tar.bz2 |
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.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/MetadataLoader.cpp')
0 files changed, 0 insertions, 0 deletions