# Error (C2248) while compiling blank project with Unreal 5.3.2

**URL:** <https://forums.unrealengine.com/t/error-c2248-while-compiling-blank-project-with-unreal-5-3-2/1523738>\
**Category:** C++\
**Tags:** error, compilation-error, unreal-engine, question, CPP\
**Created:** [December 13, 2023, 11:26pm UTC](https://forums.unrealengine.com/t/error-c2248-while-compiling-blank-project-with-unreal-5-3-2/1523738 "2023-12-13T23:26:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![PeriLeTroll](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PeriLeTroll](https://forums.unrealengine.com/u/PeriLeTroll)\
**Post date:** [December 13, 2023, 11:26pm UTC](https://forums.unrealengine.com/t/error-c2248-while-compiling-blank-project-with-unreal-5-3-2/1523738/1 "2023-12-13T23:26:00Z")

</div>

Hey,

I’ve started using Unreal Engine on the 5.3.2 version, and when creating a blank C++ game, i’m getting the following :

```auto
[1/6] Compile [x64] SharedPCH.Engine.Cpp20.cpp
C:\Program Files\Epic Games\UE_5.3\Engine\Source\predefined C++ types (compiler internal)(420): error C2248: 'FHazardPointerCollection::FHazardRecord::FHazardRecord'? impossible d'acc?der ? private membre d?clar?(e) dans la classe 'FHazardPointerCollection::FHazardRecord'
C:\Program Files\Epic Games\UE_5.3\Engine\Source\Runtime\Core\Public\Experimental\Containers\HazardPointer.h(86): note: voir la d?claration de 'FHazardPointerCollection::FHazardRecord::FHazardRecord'
C:\Program Files\Epic Games\UE_5.3\Engine\Source\Runtime\Core\Public\Experimental\Containers\HazardPointer.h(77): note: voir la d?claration de 'FHazardPointerCollection::FHazardRecord'
C:\Program Files\Epic Games\UE_5.3\Engine\Source\predefined C++ types (compiler internal)(420): note: le contexte d'instanciation du mod?le (le plus ancien) est
C:\Program Files\Epic Games\UE_5.3\Engine\Source\Runtime\Core\Public\Experimental\Containers\HazardPointer.h(133): note: voir la r?f?rence ? l'instanciation de la fonction mod?le 'void __builtin_array_init_helper<FHazardPointerCollection::FHazardRecord>(_T *,size_t) noexcept(<expr>)' en cours de compilation
        with
        [
            _T=FHazardPointerCollection::FHazardRecord
        ]
[2/6] Resource Default.rc2

```

Do someone have a similar problem ? I’ve done nothing yet on my computer except installing the 2022 free version of VS.

Thanks

---

<div class="post-metadata">

**Author:** ![Tomza](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tomza](https://forums.unrealengine.com/u/Tomza)\
**Post date:** [February 14, 2024, 12:19pm UTC](https://forums.unrealengine.com/t/error-c2248-while-compiling-blank-project-with-unreal-5-3-2/1523738/2 "2024-02-14T12:19:23Z")

</div>

Hey,

I have a similar problem. I have no fix.

My fix for now is commenting the 86 line out:

```
	std::atomic<uintptr_t> Hazard{ FreeHazardEntry };
	//FHazardRecord() = default;

```

---

<div class="post-metadata">

**Author:** ![FunGames55](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/fungames55/32/710746_2.png) [@FunGames55](https://forums.unrealengine.com/u/FunGames55)\
**Post date:** [February 16, 2024, 2:02am UTC](https://forums.unrealengine.com/t/error-c2248-while-compiling-blank-project-with-unreal-5-3-2/1523738/3 "2024-02-16T02:02:08Z")

</div>

I just ran into this issue as well after updating to VS2022 17.9.0. Looks like a bug in the MSVC compiler included with that build. Some have rolled back to latest 17.8.x or done something similar to previous post or making it public:

Details here:  
[https://developercommunity.visualstudio.com/t/VS-2022-1790-Preview-10-\_\_builtin\_arr/10519788?sort=newest&ftype=problem](https://developercommunity.visualstudio.com/t/VS-2022-1790-Preview-10-__builtin_arr/10519788?sort=newest&ftype=problem)

---

<div class="post-metadata">

**Author:** ![YuriNK](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/yurink/32/1194511_2.png) [@YuriNK](https://forums.unrealengine.com/u/YuriNK)\
**Post date:** [February 22, 2024, 10:06am UTC](https://forums.unrealengine.com/t/error-c2248-while-compiling-blank-project-with-unreal-5-3-2/1523738/4 "2024-02-22T10:06:22Z")

</div>

Couldn’t rollback from 17.9.1 to 17.8.x (only to 17.9.0), but update to 17.10 Preview solved it.

---

<div class="post-metadata">

**Author:** ![Megurine](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/megurine/32/490361_2.png) [@Megurine](https://forums.unrealengine.com/u/Megurine)\
**Post date:** [February 26, 2024, 2:06pm UTC](https://forums.unrealengine.com/t/error-c2248-while-compiling-blank-project-with-unreal-5-3-2/1523738/5 "2024-02-26T14:06:38Z")

</div>

I validate the issue in 17.9.1 and I also validate that the update to 17.10 fixes the problem.

---

<div class="post-metadata">

**Author:** ![LaxyHawk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LaxyHawk](https://forums.unrealengine.com/u/LaxyHawk)\
**Post date:** [March 10, 2024, 9:03pm UTC](https://forums.unrealengine.com/t/error-c2248-while-compiling-blank-project-with-unreal-5-3-2/1523738/6 "2024-03-10T21:03:15Z")

</div>

I validate as well the issue with 17.9.3. Commenting the default constructor of FHazardRecord solve the problem anyways like said Tomza. Thanks to him.
