fix Issue 9399 - ICE with nested function, template alias parameter, -inline, depending on order of source files