Skip to content

[BUG] using the using keyword inside a namespace with global functions results in code that does not compile #1213

Open
@farmerpiki

Description

@farmerpiki

quick example for reproducing:

xf: () -> int = 42;
qq: namespace = {
using ::xf;
}

results in:

namespace qq {
using ::xf;
}

being declared before [[nodiscard]] auto xf() -> int;
which makes the code not compile due to cpp1 requiring ordering.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions