这是我的代码:
#include <string>
struct A
{
int a;
std::string sa;
};
int main()
{
A arr[3]{};
}
当我使用gcc 4.8.2
(在 Ubuntu 14.04 上)使用-std=gnu++11
选项编译它时,我收到以下错误:
example.cpp: In function ‘int main()’:
example.cpp:11:14: internal compiler error: in gimplify_init_constructor, at gimplify.c:4271
A arr[3]{};
^
为什么会引发内部编译器错误?它是编译器错误吗?