Skip to content

std::log2(x) is not a member of 'std' #43

@yy172

Description

@yy172

When I compile the statement mentioned in the title using GCC 12.3.0-2, the compilation fails with the error: "error: 'log2' is not a member of 'std'; did you mean 'log'?" However, when using GCC 12.4.0-2, it compiles successfully, with identical compilation parameters and source code. The only difference is the release version of GCC 12. Could this issue be caused by the parameters configured when building GCC 12 from source? If so, specifically which parameter might be responsible?

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