# UHT failing to parse struct constructors

**URL:** <https://forums.unrealengine.com/t/uht-failing-to-parse-struct-constructors/389906>\
**Category:** Feedback & Requests\
**Tags:** header, uht, unreal-engine, bug-report, question\
**Created:** [April 4, 2017, 3:54am UTC](https://forums.unrealengine.com/t/uht-failing-to-parse-struct-constructors/389906 "2017-04-04T03:54:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thumper](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Thumper](https://forums.unrealengine.com/u/Thumper)\
**Post date:** [April 4, 2017, 3:54am UTC](https://forums.unrealengine.com/t/uht-failing-to-parse-struct-constructors/389906/1 "2017-04-04T03:54:57Z")

</div>

The following code works on 4.14 but does not work on 4,15

```
USTRUCT(BlueprintType)
struct FAry
{
	GENERATED_USTRUCT_BODY()
		UPROPERTY()
		TArray<int32> cells;  
	FAry(){}
	friend FArchive& operator<<(FArchive& Ar, FAry& V)
	{
		return Ar << V.cells;
	}
};
USTRUCT(BlueprintType)
struct F3DARY
{
	GENERATED_USTRUCT_BODY()
	UPROPERTY()
		TArray<FAry> row;
	UPROPERTY()
		TArray<int32> faces;
	UPROPERTY()
		int32 numVerts;
	F3DARY()
	{
		numVerts = 0;
	}
	friend FArchive& operator<<(FArchive& Ar, F3DARY& V)
	{
		return Ar << V.row << V.faces << V.numVerts;
	}
};
USTRUCT(BlueprintType)
struct F4DARY
{
	GENERATED_USTRUCT_BODY()
	UPROPERTY()
		TArray<F3DARY> ROW;	//UP TO DOWN
	F4DARY()	{}
	friend FArchive& operator<<(FArchive& Ar, F4DARY& V)
	{
		return Ar << V.ROW;
	}
};

```

In 4.15 the top struct works fine, but the second two structs fail. This thread on the forums is where someone helped me, thanks again to them for pointing out what was going on.

[The thread](https://forums.unrealengine.com/showthread.php?141307-Help-with-migrating-from-4-14-to-4-15)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b666e59e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b666e59e](https://forums.unrealengine.com/u/anonymous_user_b666e59e)\
**Post date:** [May 11, 2017, 9:48pm UTC](https://forums.unrealengine.com/t/uht-failing-to-parse-struct-constructors/389906/2 "2017-05-11T21:48:04Z")

</div>

Hi ,

I apologize for the delay in responding to your post. Thank you for letting us know about this issue. Your suggestion about what was happening was close, but what is really happening here is most likely fallout from a change in 4.15 related to how struct _names_ are parsed.

In this case, the problem is not really how your constructor is initializing properties, but instead that the name of the struct uses all capital letters. I discovered this quite by accident when I mistakenly named a struct in one of my test projects `F3DAry` instead of `F3DARY`, and the project built without any problems. I then tried including all three of your structs exactly as you provided them, but with the last two letters of the second and third structs lowercase, and the project built fine. It turns out that if any single letter in the struct’s name is not capitalized, the build will complete successfully. I have entered [UE-44950](https://issues.unrealengine.com/issue/UE-44950) to have this investigated further.
