bad_raw_ptr_cast_kinds.cpp:55:9: error: cannot cast from type 'raw_ptr' to pointer type 'int *' (void)static_cast(ptr); ^~~~~~~~~~~~~~~~~~~~~~ bad_raw_ptr_cast_kinds.cpp:56:9: error: no matching conversion for static_cast from 'RawPtrWrapper' to 'raw_ptr' (void)static_cast>(wrapped); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./base/allocator/partition_allocator/pointers/raw_ptr.h:11:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'RawPtrWrapper' to 'const raw_ptr' for 1st argument class raw_ptr { ^~~~~~~ ./base/allocator/partition_allocator/pointers/raw_ptr.h:11:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'RawPtrWrapper' to 'raw_ptr' for 1st argument class raw_ptr { ^~~~~~~ ./base/allocator/partition_allocator/pointers/raw_ptr.h:11:7: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided bad_raw_ptr_cast_kinds.cpp:57:9: error: cannot cast from type 'RawPtrWrapper' to pointer type 'int *' (void)static_cast(wrapped); ^~~~~~~~~~~~~~~~~~~~~~~~~~ bad_raw_ptr_cast_kinds.cpp:59:9: error: reinterpret_cast from 'raw_ptr' to 'int *' is not allowed (void)reinterpret_cast(ptr); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ bad_raw_ptr_cast_kinds.cpp:60:9: error: reinterpret_cast from 'RawPtrWrapper' to 'raw_ptr' is not allowed (void)reinterpret_cast>(wrapped); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bad_raw_ptr_cast_kinds.cpp:61:9: error: reinterpret_cast from 'RawPtrWrapper' to 'int *' is not allowed (void)reinterpret_cast(wrapped); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bad_raw_ptr_cast_kinds.cpp:20:50: error: [chromium-style] casting 'void *' to 'RawPtrWrapper * is not allowed. (void)reinterpret_cast(void_ptr); ^ bad_raw_ptr_cast_kinds.cpp:20:50: note: [chromium-style] 'RawPtrWrapper *' manages BackupRefPtr refcounts; bypassing its C++ interface or treating it as a POD will lead to memory safety errors. bad_raw_ptr_cast_kinds.cpp:9:3: note: [chromium-style] 'RawPtrWrapper' manages BackupRefPtr or its container here. raw_ptr ptr; ^ bad_raw_ptr_cast_kinds.cpp:24:50: error: [chromium-style] casting 'void *' to 'RawPtrWrapper is not allowed. ref = reinterpret_cast(void_ptr); ^ bad_raw_ptr_cast_kinds.cpp:24:50: note: [chromium-style] 'RawPtrWrapper' manages BackupRefPtr refcounts; bypassing its C++ interface or treating it as a POD will lead to memory safety errors. bad_raw_ptr_cast_kinds.cpp:9:3: note: [chromium-style] 'RawPtrWrapper' manages BackupRefPtr or its container here. raw_ptr ptr; ^ bad_raw_ptr_cast_kinds.cpp:27:37: error: [chromium-style] casting 'raw_ptr' to 'int * is not allowed. (void)__builtin_bit_cast(int*, ptr); ^ bad_raw_ptr_cast_kinds.cpp:27:37: note: [chromium-style] 'raw_ptr' manages BackupRefPtr refcounts; bypassing its C++ interface or treating it as a POD will lead to memory safety errors. bad_raw_ptr_cast_kinds.cpp:28:49: error: [chromium-style] casting 'RawPtrWrapper' to 'raw_ptr is not allowed. (void)__builtin_bit_cast(raw_ptr, wrapped); ^ bad_raw_ptr_cast_kinds.cpp:28:49: note: [chromium-style] 'RawPtrWrapper' manages BackupRefPtr refcounts; bypassing its C++ interface or treating it as a POD will lead to memory safety errors. bad_raw_ptr_cast_kinds.cpp:9:3: note: [chromium-style] 'RawPtrWrapper' manages BackupRefPtr or its container here. raw_ptr ptr; ^ bad_raw_ptr_cast_kinds.cpp:29:41: error: [chromium-style] casting 'RawPtrWrapper' to 'int * is not allowed. (void)__builtin_bit_cast(int*, wrapped); ^ bad_raw_ptr_cast_kinds.cpp:29:41: note: [chromium-style] 'RawPtrWrapper' manages BackupRefPtr refcounts; bypassing its C++ interface or treating it as a POD will lead to memory safety errors. bad_raw_ptr_cast_kinds.cpp:9:3: note: [chromium-style] 'RawPtrWrapper' manages BackupRefPtr or its container here. raw_ptr ptr; ^ bad_raw_ptr_cast_kinds.cpp:32:53: error: [chromium-style] casting 'RawPtrWrapper *' to 'uintptr_t is not allowed. uintptr_t i = reinterpret_cast(&wrapped); ^ bad_raw_ptr_cast_kinds.cpp:32:53: note: [chromium-style] 'RawPtrWrapper *' manages BackupRefPtr refcounts; bypassing its C++ interface or treating it as a POD will lead to memory safety errors. bad_raw_ptr_cast_kinds.cpp:9:3: note: [chromium-style] 'RawPtrWrapper' manages BackupRefPtr or its container here. raw_ptr ptr; ^ bad_raw_ptr_cast_kinds.cpp:35:48: error: [chromium-style] casting 'uintptr_t' to 'RawPtrWrapper * is not allowed. wrapped = *reinterpret_cast(i); ^ bad_raw_ptr_cast_kinds.cpp:35:48: note: [chromium-style] 'RawPtrWrapper *' manages BackupRefPtr refcounts; bypassing its C++ interface or treating it as a POD will lead to memory safety errors. bad_raw_ptr_cast_kinds.cpp:9:3: note: [chromium-style] 'RawPtrWrapper' manages BackupRefPtr or its container here. raw_ptr ptr; ^ bad_raw_ptr_cast_kinds.cpp:43:14: error: [chromium-style] casting 'RawPtrWrapper *' to 'void * is not allowed. void_ptr = arr; ^ bad_raw_ptr_cast_kinds.cpp:43:14: note: [chromium-style] 'RawPtrWrapper *' manages BackupRefPtr refcounts; bypassing its C++ interface or treating it as a POD will lead to memory safety errors. bad_raw_ptr_cast_kinds.cpp:9:3: note: [chromium-style] 'RawPtrWrapper' manages BackupRefPtr or its container here. raw_ptr ptr; ^ 14 errors generated.