Skip to content

static float f = 0.f / 0.f; will not compile #173095

@tydeman

Description

@tydeman

static float f = 0.f / 0.f; will not compile with clang 21.1.7 (and others) on Linux on Intel x86_64

It should be a quiet NaN.

Metadata

Metadata

Assignees

No one assigned

    Labels

    c23clang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions