【问题标题】:Can constexpr recursion limit be configured for clang or gcc?可以为clang或gcc配置constexpr递归限制吗?
【发布时间】:2013-06-01 19:33:49
【问题描述】:

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

【问题讨论】:

    标签: gcc clang constexpr compiler-options


    【解决方案1】:

    当我使用 gcc 超出限制时,我收到以下错误消息:

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-03-04
      • 2021-02-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多