fix Issue 10094 - NRVO with static array return should work
Merge pull request #2042 from 9rnsr/fix10094

Issue 10094 - NRVO with static array return should work