<div dir="ltr">Quick question about copy constructors. Is "istrivial" true in the following example? clang thinks it is not trivially-copyable but gcc seems to disagree.<div><br></div><div><div style="color:rgb(0,0,0);font-family:"Fira Mono";font-size:14px;white-space:pre"><span style="color:rgb(0,0,255)">#include</span> <type_traits></div><div style="color:rgb(0,0,0);font-family:"Fira Mono";font-size:14px;white-space:pre"><span style="color:rgb(0,0,255)">struct</span> S {</div><div style="color:rgb(0,0,0);font-family:"Fira Mono";font-size:14px;white-space:pre">  S(S&) = <span style="color:rgb(0,0,255)">default</span>;</div><div style="color:rgb(0,0,0);font-family:"Fira Mono";font-size:14px;white-space:pre">};</div><div style="color:rgb(0,0,0);font-family:"Fira Mono";font-size:14px;white-space:pre"><span style="color:rgb(0,0,255)">bool</span> istrivial = std::is_trivially_copyable<S>::value;</div></div><div><br></div><div>If I understand the following defect report correctly, gcc seems correct:</div><div><br></div><div><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#2171">http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#2171</a></div></div>