3.8/3.9 SVN: Compile failure with enum and ternary operator

Hi clang developers

clang 3.8 and 3.9 SVN fails to compile the C++ program below.

I already reported the bug via LLVM Bugzilla (https://llvm.org/bugs/show_bug.cgi?id=28425) but got no response.