<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 6 March 2017 at 06:37, Hal Finkel via cfe-dev <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF"><span class="gmail-">
<p>On 03/06/2017 04:22 AM, Piotr Padlewski
via cfe-dev wrote:<br></p>
<blockquote type="cite">
<div dir="ltr">I belive that users will expect to compile C++11
code on default because of GCC. I think moving to C++14 (with
the Richard's policy from June) is a good choice, because of
user experiance of developers (specially new). Is there a list
of things that might break after switching to C++11? I wonder
how much bugs could be found easily by clang-tidy (or to
implement it as clang warning), so that prior to switch users
would know what would break.</div>
</blockquote>
<br></span>
There is a pretty good list in Appendix C of the C++ standard. Also,
see:<br>
<br>
<a class="gmail-m_-7273282433855910429moz-txt-link-freetext" href="http://stackoverflow.com/questions/6399615/what-breaking-changes-are-introduced-in-c11" target="_blank">http://stackoverflow.com/<wbr>questions/6399615/what-<wbr>breaking-changes-are-<wbr>introduced-in-c11</a><br>
<br>
which summarizes most of those and covers some others.<br></div></blockquote><div><br></div><div>The two largest issues (by *far*) we encountered when porting our codebase from C++98 to C++11 were:</div><div><br></div><div>1) narrowing conversions in list initialization; char buf[] = { 'f', 'o', 'o', '0' + n, 0 }; is now ill-formed</div><div>2) UDLs versus macros; printf("%10"PRIuS, my_size_t); and "in "__FILE__":" are now ill-formed</div><div><br></div><div>Clang provides warning flags to disable the error for the first case (-Wno-c++11-narrowing) and for the first half of the second case (-Wno-reserved-user-defined-literal).</div><div><br></div><div>Compared to the above, silent changes in behavior were extremely rare.</div></div></div></div>