今天碰到一个编译错误:
: error: expected type-specifier before ‘;’ token
error: expected ‘{’ before ‘)’ token
error: no match for ‘operator*’ (operand type is 'get_abc(int)::<lambda()>’)
gcc 8.5 build 没有问题,11.5 build 有问题
代码是:
int64_t **retp;
retp = new (int64_t (*[num])