Fix syntax error parsing unnamed template parameters with a default.
Closes #961
This commit is contained in:
parent
081d44d45e
commit
9b91b24d6b
3 changed files with 46 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue