On Thu, May 5, 2022 at 2:26 PM Martin Liška <mli...@suse.cz> wrote: > > On 5/5/22 14:24, Richard Biener wrote: > > Hmm, but we support C++11 host compilers that are not GCC but > > may claim to be, with GCC_VERSION 4.2.x for example. Are we sure > > all those liars implement what we guard with the version checks? > > Do you know about any real example of such a liars? > Why should we even care about them? >
Well, there's clang, for one (which pretends to be gcc 4.2), which is kind of a big deal... > Martin > > > > > I suppose to be "correct" we'd at least need to preserve > > #if __GNUC__ > > in places where we might use the host compiler? (if compilers then lie > > it's their own fault) >