fix #5876, static parameters in macro expansions