Ticket #5814: Handle A::B as template parameter for enum initializers.
Merge pull request #309 from simartin/ticket_5814

Ticket #5814: Handle A::B as template parameter for enum initializers.