Skip to content

clang does not allow static constexpr user literals as data class members #91242

@user1095108

Description

@user1095108

For example, a data member:

static constexpr dpp eps{sig2_t(1), -detail::maxpow10e<T, exp2_t>()};

https://wandbox.org/permlink/zVXns995f9IGBBAv

gcc compiles example without issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:frontendLanguage frontend issues, e.g. anything involving "Sema"constexprAnything related to constant evaluation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions