[cfe-dev] Three code snippets accepted by clang and rejected by g++

Nicola Gigante nicola.gigante at gmail.com
Tue Aug 12 08:18:29 PDT 2014


Il giorno 12/ago/2014, alle ore 12:07, Renato Golin <renato.golin at linaro.org> ha scritto:

> On 11 August 2014 22:49, Richard Smith <richard at metafoo.co.uk> wrote:
>> Clang's behavior reflects the current intent of the C++ core working group.
>> This is core issue 1699, and the current resolution to that is to treat
>> everything that is lexically within a befriended entity as being befriended.
>> GCC does not yet implement the resolution to core issue 1699 (which is
>> reasonable, since it's not yet even resolved).
> 
> Shouldn't Clang only implement core issues with a special "bleeding edge" flag?
> 

Thanks everybody for your informative replies.
I was writing, just before Renato's message:
what about a set of warnings for compatibility issues that could arise by relying
on core issues being implemented by clang that other compilers could not have
implemented yet?

> cheers,
> --renato

Thanks,
Nicola



More information about the cfe-dev mailing list