[CP] [to #55710902]Support case when expr in decl default value should not use '()'.

This commit is contained in:
swjtu-wenxiang 2024-03-22 02:21:32 +00:00 committed by ob-robot
parent ae8a21d4e7
commit 5b3a11a361

View File

@ -1791,7 +1791,7 @@ sp_data_type:
opt_sp_decl_default:
/*Empty*/ { $$ = NULL; }
| DEFAULT expr
| DEFAULT default_expr
{
malloc_non_terminal_node($$, parse_ctx->mem_pool_, T_SP_DECL_DEFAULT, 1, $2);
}