[cfe-dev] Setting default dialect to C++11

Mehdi Amini via cfe-dev cfe-dev at lists.llvm.org
Thu Mar 2 10:31:16 PST 2017


> On Mar 2, 2017, at 4:01 AM, Joerg Sonnenberger via cfe-dev <cfe-dev at lists.llvm.org> wrote:
> 
> On Wed, Mar 01, 2017 at 05:07:00PM -0800, Mehdi Amini via cfe-dev wrote:
>> Right, I don’t think it is a good idea for clang as a project to have
>> important default configuration flags that diverge between
>> platform/target, like the default language. This is reducing portability
>> and quite user hostile IMO.
> 
> I somewhat disagree and that's why I didn't have a problem with the
> change. As long as we silently miscompile C++03 code when enabling C++11
> or later, I don't think it should be a general default. In a somewhat
> more restricted environment like the Playstation toolchain, they are in
> a much better position to judge wether those miscompiles will be
> triggered by their userbase or not.

Vendor do what they want. As an open-source project, I expect more coherency: silently miscompiling a program without changing the option from one platform to another is the kind of portability issue I was mentioning, and this is why I rather error in the driver and require buy in.

— 
Mehdi




More information about the cfe-dev mailing list