下面的代码编译得很好VC++ 19.00.23506 http://rextester.com/GMUP11493(标志:/Wall /WX /Za
) 与VC++19.10.25109.0(标志:/Wall /WX /Za /permissive-
,这可以在以下位置检查http://webcompiler.cloudapp.net http://webcompiler.cloudapp.net), but 不编译铿锵3.8.0 and 克++6.3.0 http://coliru.stacked-crooked.com/a/6f77956bb0e2138d(标志:-std=c++11 -Wall -Wextra -Werror -pedantic-errors
)。这是一个错误吗vc++标准是否禁止此类结构?
struct
{
}
foo()
{
return {};
}
int main()
{
}
MSVC 出现错误:
[dcl.fct]/9类型不得在返回或参数类型中定义...
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)