It's hard to know if it's the compiler's fault without a test case - due to
the nature of undefined behavior and other things (implementation defined
behavior and unspecified behavior) in C++, that the program behaves as
expected with another compiler or another set of flags doesn't give a
strong indication as to where the problem is (in the code, in one of the
compilers, etc).

- Dave

On Fri, Oct 25, 2019 at 2:22 PM Hans Åberg <haber...@telia.com> wrote:

> It is not my code, it belongs to gmp-6.1.2, I merely happened to come a
> cross it. It passes on gcc9, so there is something that clang9 does.
>
>
> > On 25 Oct 2019, at 23:15, David Blaikie <dblai...@gmail.com> wrote:
> >
> > It's pretty hard to conclude whether it's a bug in your code or in the
> compiler, or both, without narrowing down a test case.
>
>
_______________________________________________
cfe-users mailing list
cfe-users@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users

Reply via email to