[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gold/28106] Build of 2.37 fails on FreeBSD and Clang

From: amodra at gmail dot com
Subject: [Bug gold/28106] Build of 2.37 fails on FreeBSD and Clang
Date: Tue, 20 Jul 2021 00:24:22 +0000


Alan Modra <amodra at gmail dot com> changed:

           What    |Removed                     |Added
           Assignee|ccoutant at gmail dot com          |amodra at gmail dot com
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2021-07-20

--- Comment #1 from Alan Modra <amodra at gmail dot com> ---
Huh, I wondered which style of cast I ought to use there.  Given the reported
error, I looked at https://en.cppreference.com/w/cpp/language/reinterpret_cast
and see:

"9) The null pointer value of any pointer type can be converted to any other
pointer type, resulting in the null pointer value of that type. Note that the
null pointer constant nullptr or any other value of type std::nullptr_t cannot
be converted to a pointer with reinterpret_cast: implicit conversion or
static_cast should be used for this purpose."

The code is using NULL, so we should be OK.  clang-12 seems to compile the code
OK on linux (ubuntu 21.04).  Are your headers defining NULL as nullptr?

You are receiving this mail because:
You are on the CC list for the bug.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]