cppfront
cppfront copied to clipboard
[BUG] using the using keyword inside a namespace with global functions results in code that does not compile
trafficstars
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.