Issue 11926 - Segmentation fault when using const in an enum

https://d.puremagic.com/issues/show_bug.cgi?id=11926