cppfront icon indicating copy to clipboard operation
cppfront copied to clipboard

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

Open farmerpiki opened this issue 1 year ago • 3 comments
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.

farmerpiki avatar Aug 07 '24 06:08 farmerpiki