c++ - 内部编译器错误消息是什么意思,我该怎么办?

标签 c++ compiler-errors compilation internal-compiler-error

我试图用 pgCC 编译器编译我的 C++ 程序,它使用 MPICH 和 NAG C 库(我使用 NAG 生成随机数)。

但是,编译器给了我以下错误信息:

PGCC-S-0000-Internal compiler error. linearize: bad ili #:       0 (mpisim.C: 225)
PGCC-S-0000-Internal compiler error. gen_aili: unrec. ili opcode:       0 (mpisim.C: 225)
PGCC-S-0000-Internal compiler error. linearize: bad ili #:       0 (mpisim.C: 266)
PGCC-S-0000-Internal compiler error. gen_aili: unrec. ili opcode:       0 (mpisim.C: 266)
PGCC/x86 Linux 12.4-0: compilation completed with severe errors

我不知道这些消息指的是什么。谁能给我解释一下他们的意思?

有没有办法让我找出有问题的行的位置? (mpisim.C: 225)中的255是否表示我代码中的行号?

最佳答案

内部编译器错误是编译器中的错误。除了向编译器供应商提出问题之外,您无能为力。

通常,ICE 会在您尝试编译不正确的代码时发生,但编译器在有效的 C++ 上阻塞也是完全可以想象的。该语言非常复杂,很难以所有可能的组合来测试每个可能的特性。

如果您设法找出导致崩溃的代码行,您可以尝试用更简单的术语重写它(例如,通过引入额外的局部变量或 typedef)。

关于c++ - 内部编译器错误消息是什么意思,我该怎么办?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12405606/

相关文章:

windows - 在预构建事件中设置环境变量并在编译步骤中使用

c++ - 如何在同一解决方案下为多个项目声明公共(public)#define?

C++ - 有没有一种方法可以使用类名作为 std::map 的键?

c++ - 如何在应该失败的CMake中实现编译测试?

android-studio - android studio/flutter 无限说 "initializing gradle"

C++ 编译错误只有一个候选函数

compiler-errors - 编译错误 - 缺少 zlib.h

c++ - 无法将 'this' 指针从 'std::stack<_Ty>' 转换为 'std::stack<_Ty> &'

c++ - 使用 c_str() 时 std::string 的未定义行为

c++ - 使用英特尔 C++ 编译器 2015 Windows 构建 Boost 1.56