Skip to content

macOS ARM64 -Wfortify-source error with Clang-20 #1282

@mborland

Description

@mborland
../../../boost/math/special_functions/detail/fp_traits.hpp:474:9: error: 'memcpy' will always overflow; destination buffer has size 0, but size argument is 4 [-Werror,-Wfortify-source]
  474 |         std::memcpy(reinterpret_cast<unsigned char*>(&x) + offset_, &a, 4);
      |         ^
1 error generated.

The comment on this structure is:

// IEEE extended double precision format with 15 exponent bits (128 bits)

Mac ARM64 has sizeof(long double) == sizeof(double) where as other ARM64 like the Graviton runners in the Drone CI have 128-bit long doubles

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions