Skip to content

constexpr not allowed on member function of type with a virtual base. #112016

Open
@i-photon

Description

@i-photon

Virtual constexpr has been allowed since C++20.
What happened?

Here's my sentiment: https://godbolt.org/z/f8hYGYMab

This is causing a needless headache trying to re-use interfaces in constexpr.

Metadata

Metadata

Assignees

No one assigned

    Labels

    c++20clang:frontendLanguage frontend issues, e.g. anything involving "Sema"confirmedVerified by a second partyconstexprAnything related to constant evaluationrejects-valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions