C++: : error: expected type-specifier before ‘;‘ token

今天碰到一个编译错误:
: error: expected type-specifier before ‘;’ token
error: expected ‘{’ before ‘)’ token
error: no match for ‘operator*’ (operand type is 'get_abc(int)::’)
gcc 8.5 build 没有问题,11.5 build 有问题

代码是:

int64_t **retp;
	retp = new (int64_t (*[num])

你可能感兴趣的:(c/c++,c++,linux)