https://sourceware.org/bugzilla/show_bug.cgi?id=28106
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.