Skip to content

Commit 046e76a

Browse files
committed
issue #10703 Incorrect output for a C++ type containing a function pointer
Looks like we were bailing out nested template part a bit early (see also test in rule `<EndTemplate>">"{BNopt}/"::" {`)
1 parent 42d0f98 commit 046e76a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scanner.l

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2134,7 +2134,7 @@ NONLopt [^\n]*
21342134
<EndTemplate>">"{BNopt}/"("({BN}*{TSCOPE}{BN}*"::")*({BN}*"*"{BN}*)+ { // function pointer returning a template instance
21352135
lineCount(yyscanner);
21362136
yyextra->current->name+='>';
2137-
if (yyextra->roundCount==0)
2137+
if (yyextra->roundCount==0 && --yyextra->sharpCount<=0)
21382138
{
21392139
BEGIN(FindMembers);
21402140
}

0 commit comments

Comments
 (0)