llvmgen.c中的xmos内部编译器错误?

llvmgen.c中的xmos内部编译器错误?,c,compilation,embedded,xmos,C,Compilation,Embedded,Xmos,我将一些用C编写的代码移植到XC,因此这就是我的构建输出 **** Build of configuration Debug for project camera_with_memory **** xmake CONFIG=Debug all Creating dependencies for point.xc Compiling point.xc xcc1: internal compiler error Failed in /build/swnb/autobuild/swview/Mac

我将一些用C编写的代码移植到XC,因此这就是我的构建输出

**** Build of configuration Debug for project camera_with_memory ****

xmake CONFIG=Debug all 
Creating dependencies for point.xc
Compiling point.xc
xcc1: internal compiler error
Failed in /build/swnb/autobuild/swview/MacOSX/build/sb/tools_xcc1_c_llvm/BackEnd/LLVM/llvmgen.c, line 9314
    isExpVar(d->components->u.dimension)
For bug reporting instructions, please see:
http://www.xmos.com/support
xmake[1]: *** [.build_Debug/src/point.xc.o] Error 1
xmake: *** [bin/Debug/camera_with_memory_Debug.xe] Error 2
这是什么原因造成的?我真的很困惑。我的C代码大约有80行。声明如下:

int sort_by_col(int center_points[num_points][2], static const unsigned int num_points, 
    int col_idx[col_idx_size], static const unsigned int col_idx_size);

我找到了消除这个错误的方法。然而,我认为这是一个错误

在我的职能范围内,我有一行代码:

int working_array[size_points][2]; // array for copying data points
用这两行代码替换这一行:(并将代码的其余部分调整为使用两个数组而不是一个数组)


我消除了这个错误。

我找到了消除这个错误的方法。然而,我认为这是一个错误

在我的职能范围内,我有一行代码:

int working_array[size_points][2]; // array for copying data points
用这两行代码替换这一行:(并将代码的其余部分调整为使用两个数组而不是一个数组)


我消除了错误。

这是编译器中的错误。似乎您不能声明第一个维度是静态常量变量的多维数组,例如

void f(static const unsigned n) {
     unsigned a[n][2];
}
这应该是允许的。作为将来的参考,由于此编译器由XMOS维护,您可以在此处向他们报告错误:

这个错误在XMOS编译器的13.0.2版本中很明显


披露:我在编译器上为XMOS工作,因此将报告此错误。

这是编译器中的错误。似乎您不能声明第一个维度是静态常量变量的多维数组,例如

void f(static const unsigned n) {
     unsigned a[n][2];
}
这应该是允许的。作为将来的参考,由于此编译器由XMOS维护,您可以在此处向他们报告错误:

这个错误在XMOS编译器的13.0.2版本中很明显


披露:我在编译器上为XMOS工作,因此将报告此错误。

3年半后,我发现了同样的问题。我在xmos.com网站上找不到编译器错误列表/勘误表。3年半后,我发现了同样的问题。我在xmos.com网站上找不到编译器错误列表/勘误表。