Skip to content

Expansion statements do not handle immediate invocations correctly #296

@DarkArc

Description

@DarkArc

The following should be valid:

enum E
{
    e1, e2
};

int main()
{
    constexpr auto m = meta::members_of( ^E );
    template for (constexpr auto x: m) { 
        char const * name = meta::name_of( x );
    }
}

However, we do not setup an immediate invocation correctly for the meta::name_of call. This results in an incorrect diagnostic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions