abseil-cpp icon indicating copy to clipboard operation
abseil-cpp copied to clipboard

[Bug]: clang 15 defines `__GXX_RTTI` but doesn't have `cxxabi.h`

Open drussel opened this issue 1 year ago • 1 comments

Describe the issue

In layout.h we have

if defined(__GXX_RTTI)
#define ABSL_INTERNAL_HAS_CXA_DEMANGLE
#endif

#ifdef ABSL_INTERNAL_HAS_CXA_DEMANGLE
#include <cxxabi.h>
#endif

which then falls over since cxxabi.h doesn't exist.

Steps to reproduce the problem

Build run clang-tidy version 15 or 16 (or presumably build with the corresponding clang version).

What version of Abseil are you using?

20230125.2

What operating system and version are you using?

Mac OS 13

What compiler and version are you using?

clang-tidy 15/16

What build system are you using?

cmake 3.26.3

Additional context

Using the conan package.

drussel avatar Apr 25 '23 17:04 drussel

Hi,

It can be related? https://github.com/paulocoutinhox/pdfium-lib/issues/102

Thanks.

paulocoutinhox avatar Oct 07 '23 03:10 paulocoutinhox