Lancern's Treasure Chest
10:51 · Nov 22, 2021 · Mon
发现一个有趣的 implementation detail
对于一个函数的参数,gcc 会将这个参数的析构放在 caller 中,clang 会将这个参数的析构放在 callee 中
这将导致在某些情况下两者的具体行为存在不一致(但仍然满足 as-if rule
Home
Powered by
BroadcastChannel
&
Sepia