fix Issue 12851 - ICE when passing const static array to template
Merge pull request #3641 from 9rnsr/fix12851

Issue 12851 - ICE when passing const static array to template