UBT Parser hangs without error when processing duplicated enums

Processing a file with two enums of the same name hangs the UBT parser without any error output.

This is in 4.6.1 downloaded engine.

Hang test: add this to a processed header.

UENUM(BlueprintType)
namespace ESomeEnum
{
enum Type
{
SE_One,
SE_Two
};
}

UENUM(BlueprintType)
namespace ESomeEnum
{
enum Type
{
SE_AnotherOne,
SE_AnotherTwo
};
}

Hi Adrian,

I tried to reproduce the issue that you described. However, when I added the sample code you provided to the header file of a custom Actor class, I received an error message in Visual Studio that stated: error : In MyActor: enum: 'ESomeEnum' already defined here

Are you adding your enums to a specific header file when you see the issue that you described?

Hi Adrian,

We have not heard from you for a while. Do you still need help with this issue? I will be marking this issue as resolved for tracking purposes, but if you still need any help please feel free to re-open this post.