C ++错误:此上下文中不允许分解声明

ben*_*nkc 2 c++ g++

为什么g++给出这样的错误?

blahblah.h:80:10: error: decomposition declaration not permitted in this context
float[NUM_OUTPUTS] output_buffer;
Run Code Online (Sandbox Code Playgroud)

(已经解决,但是创建它是因为该错误文本没有良好的Google匹配,并且错误消息难以理解。)

ben*_*nkc 7

在C ++声明中,数组大小位于变量名称之后,而不是类型之后:

float output_buffer[NUM_OUTPUTS];