# TMap where key is an FString: initializer list will accept bad MakeTuple

**URL:** <https://forums.unrealengine.com/t/tmap-where-key-is-an-fstring-initializer-list-will-accept-bad-maketuple/2747443>\
**Category:** Issues and Bug Reporting (Unreal Engine)\
**Tags:** unreal-engine, fixed\
**Created:** [August 30, 2026, 10:31pm UTC](https://forums.unrealengine.com/t/tmap-where-key-is-an-fstring-initializer-list-will-accept-bad-maketuple/2747443 "2026-08-30T22:31:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fresh\_mutroom](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fresh\_mutroom](https://forums.unrealengine.com/u/Fresh_mutroom)\
**Post date:** [August 30, 2026, 10:31pm UTC](https://forums.unrealengine.com/t/tmap-where-key-is-an-fstring-initializer-list-will-accept-bad-maketuple/2747443/1 "2026-08-30T22:31:42Z")

</div>

### Summary

A TMap where the key is an FString can be created like so:

```auto
    TMap<FString, int32> MyMap = { MakeTuple(TEXT("A"), 0) };

```

This will compile fine. During runtime when the code executes the program will crash.

If you mouse over MakeTuple it is creating a TTuple\<const wchar\_t\*, int32\>.

Issue can be solved by changing the code to:

```auto
     TMap<FString, int32> MyMap = { MakeTuple(FString(TEXT("A")), 0) };

```

### What Type of Bug are you experiencing?

Other

### Steps to Reproduce

1. create a new project

2. open project in visual studio. In any of the project’s .cpp files in global scope declare:

3. close unreal engine

4. compile your code

5. launch the project. The project’s module will fail to load. The error message you receive will be: “The game module ‘MyProject570’ could not be loaded. There may be an operating system error, the module may not be properly set up, or a plugin which has been included into the build has not been turned on.”

### Expected Result

Compile-time error. If that isn’t possible then a check being hit would be helpful.

### Observed Result

Project module fails to load. Unhelpful error message is shown. Logs are of no help.

### Affects Versions

5.7

### Platform(s)

Windows

### Additional Notes

Tested in 5.7. I did not try 5.8.

Happens whether FString is key or value.

Causes crashes anytime the code is executed. I chose static variable initialization time because that is the most difficult to debug, to show a case that could cause some engine users to lose a lot of time trying to debug.

It would be a good idea to update that error message so that it asks users to check static variable initialization for any errors.

---

<div class="post-metadata">

**Author:** ![Bug-Reporter](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bug-reporter/32/1223650_2.png) [@Bug-Reporter](https://forums.unrealengine.com/u/Bug-Reporter)\
**Post date:** [September 21, 2026, 7:00pm UTC](https://forums.unrealengine.com/t/tmap-where-key-is-an-fstring-initializer-list-will-accept-bad-maketuple/2747443/4 "2026-09-21T19:00:26Z")

</div>

UE-394884 is ‘Closed’ as ‘Fixed’. The issue will be addressed in 6.0.
