gcc - 可以为 clang 或 gcc 配置 constexpr 递归限制吗?

标签 gcc clang constexpr compiler-options

可以通过 clang 或 gcc 的命令行选项配置 constexpr 编译时递归限制吗?怎么办?

最佳答案

当我超出 gcc 的限制时,我收到此错误消息:

error: constexpr evaluation depth exceeds maximum of 512 (use -fconstexpr-depth= to increase the maximum)

并根据documentation ,clang 理解相同的选项。

关于gcc - 可以为 clang 或 gcc 配置 constexpr 递归限制吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16876474/

相关文章:

linux - 为 arm 交叉编译 glibc

c - 静态分析奇怪的结果

c++ - 如何使用 Clang 更喜欢一个图书馆位置而不是另一个图书馆位置?

c++ - 将全局 constexpr 类移动到类中作为静态 constexpr

c++ - 特定于类的释放函数可以在常量表达式中使用吗?

c++ - 如何在静态 constexpr 类成员中使用 make_tuple() ?

c++ - 在不破坏任何东西的情况下使用 OSX 和 Eclipse 获得一个可用的 C++11 工具链

c++ - Visual Studio 2013中的POSIX header (来自MinGW项目)

c - Debian 上没有 stdint.h 文件

c++ - 如何使我的代码语句以 clang 格式出现在一行中?