Why is Visual Studio on Compiler Explorer ignoring the Exception Model setting?

允我心安 提交于 2020-01-14 10:23:39

问题


When I try to use the /EHs flag in a Compiler Explorer testcase (to "enable" exceptions passing through extern "C" functions), VC++ 19.22 seems to be ignoring it, based on it still kicking out a C5039 and not actually changing the code.

What am I missing? Have I forgotten another switch or something?

  • Base case cmdline: /O1 /EHsc /Wall /wd4571
  • Test case cmdline: /O1 /EHs /Wall /wd4571

回答1:


Ah, looks like Compiler Explorer sets the exception model itself, and this is taking precedence.



来源:https://stackoverflow.com/questions/59050839/why-is-visual-studio-on-compiler-explorer-ignoring-the-exception-model-setting

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!