Add support for friend templates, including operator overloading.

Closes #196.
This commit is contained in:
William S Fulton 2015-05-04 10:01:34 +01:00
commit 428b6176df
10 changed files with 146 additions and 3 deletions

View file

@ -6453,8 +6453,8 @@ idcolon : idtemplate idcolontail {
| NONID DCOLON idtemplate {
$$ = NewStringf("::%s",$3);
}
| OPERATOR {
$$ = NewString($1);
| OPERATOR template_decl {
$$ = NewStringf("%s%s",$1,$2);
}
| NONID DCOLON OPERATOR {
$$ = NewStringf("::%s",$3);