Fix syntax error parsing unnamed template parameters with a default.

Closes #961
This commit is contained in:
William S Fulton 2022-11-25 08:29:01 +00:00
commit 9b91b24d6b
3 changed files with 46 additions and 2 deletions

View file

@ -4489,8 +4489,9 @@ templateparameters : templateparameter templateparameterstail {
| empty { $$ = 0; }
;
templateparameter : templcpptype {
templateparameter : templcpptype def_args {
$$ = NewParmWithoutFileLineInfo(NewString($1), 0);
Setattr($$, "value", $2.rawval ? $2.rawval : $2.val);
}
| parm {
$$ = $1;