Hi All, the following patch fix the subjected issue
Index: gcc/cp/parser.c =================================================================== --- gcc/cp/parser.c (revision 266026) +++ gcc/cp/parser.c (working copy) @@ -24615,6 +24615,8 @@ { tree expr; cp_lexer_consume_token (parser->lexer); + + inject_this_parameter (current_class_type, TYPE_UNQUALIFIED); if (cp_lexer_peek_token (parser->lexer)->type == CPP_OPEN_PAREN) { ok to commit along the testcase with changelog update ? Thank you ~Umesh