<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Mar 3, 2017 at 9:20 AM, Mehdi Amini 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 style="word-wrap:break-word"><span class="gmail-"><div><blockquote type="cite"><div>On Mar 2, 2017, at 10:57 PM, Robinson, Paul <<a href="mailto:paul.robinson@sony.com" target="_blank">paul.robinson@sony.com</a>> wrote:</div><br class="gmail-m_-1967977261214836681Apple-interchange-newline"><div><div class="gmail-m_-1967977261214836681WordSection1" style="font-family:helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:"times new roman",serif">Obviously in some cases target-specific defaults make a lot of sense -- for instance if we know that a target or its ABI or toolchain simply doesn't support some feature, or needs special support for something -- but in the absence of a strong reason, we should generally aim for all targets to behave roughly the same.<u></u><u></u></div><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:"times new roman",serif"><span style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></div><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:"times new roman",serif"><a name="m_-1967977261214836681__MailEndCompose"><span style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)">And in our case, the PS4 target simply doesn't support dialects other than C++11, therefore the target-specific default makes sense.</span></a></div></div></div></blockquote><br></div></span><div>I gave an alternative view that shows that “it makes sense” is not obvious.</div></div></blockquote><div><br></div><div>FWIW we already default to C++11 in an MSVC environment, regardless of the driver used, because it's required to compile the MSVC STL headers. It's pretty close to Paul's use case of "the PS4 target simply doesn't support dialects other than C++11". There's definitely prior art here.</div><div><br>+1 to what James said, we should just raise the language standard across the board.</div></div></div></div>