[cfe-users] Clang9 UBSan and GMP

David Blaikie via cfe-users cfe-users at lists.llvm.org
Fri Oct 25 14:38:12 PDT 2019

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 <haberg-1 at 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 <dblaikie at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20191025/68ceace0/attachment.html>

More information about the cfe-users mailing list