Skip to content

failure to build on OpenIndiana g++14 #3013

@ghost

Description

Describe the bug
Build failure.
Image

And link failure if replacing with std::isnan.
Image

Expected behavior
It building and linking properly.

Reproduction steps
Steps to reproduce the bug.

  • install OpenIndiana/some illumos-based distro with this specific gcc version
  • sudo pkg install gcc-14
  • git clone --depth=1 https://github.com/catchorg/Catch2
  • cd Catch2
  • cmake -DCMAKE_BUILD_TYPE=Release -B build
  • cmake --build build -- -j128

Platform information:

  • OS: OpenIndiana
  • Compiler+version: GCC v14.3.0
  • Catch version: latest git

Additional context
I solved the issue by replacing with std::isnan, but it didn't make the linker happy either, Replacing Catch::isnan for std::isnan in catch_tostring.cpp makes it compile and link just fine.

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