Ticket #6121: Report a syntax error for invalid enum initializers.

Hi,

This patch fixes a crash upon invalid enum initializer by reporting a syntax error and bailing out. Thanks to consider merging.

Cheers,
  Simon