Fix Issue 12824 - REG(2.066) ICE(statement.c) Segfault with label and static if
Merge pull request #3607 from yebblies/issue12824

Issue 12824 - REG(2.066) ICE(statement.c) Segfault with label and static if