# \[Bug Report\] Unreal Header Tool parsing breaks on multi-line c++ comments

**URL:** <https://forums.unrealengine.com/t/bug-report-unreal-header-tool-parsing-breaks-on-multi-line-c-comments/350300>\
**Category:** C++\
**Tags:** unreal-engine, bug-report, question, CPP\
**Created:** [March 11, 2016, 7:42pm UTC](https://forums.unrealengine.com/t/bug-report-unreal-header-tool-parsing-breaks-on-multi-line-c-comments/350300 "2016-03-11T19:42:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![scamp](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@scamp](https://forums.unrealengine.com/u/scamp)\
**Post date:** [March 11, 2016, 7:42pm UTC](https://forums.unrealengine.com/t/bug-report-unreal-header-tool-parsing-breaks-on-multi-line-c-comments/350300/1 "2016-03-11T19:42:37Z")

</div>

Branch: Source build, 4.10 (#define BRANCH\_NAME “+depot+UE4-Releases+4.10”)

Description: Unreal Header Tool parsing fails silently with valid c++ multi-line comment syntax.

Repro steps:

1. Compile this (fix up slightly with API and whatever else):

The result of the bug is that when you compile your project, UnrealHeaderTool.exe crashes (assert fails) with this:  
\*\*  
1\> [PathToHeaderFile]: LogWindows:Error: Windows GetLastError: The operation completed successfully. (0)  
1\> [PathToHeaderFile] : LogWindows:Error: === Critical error: ===  
1\> Assertion failed: FoundClass [File:\Public\Engine\Source\Programs\UnrealHeaderTool\Private\HeaderParser.cpp] [Line: 4410]  
1\>Error : Failed to generate code for [ProjectName] - error code: CrashOrAssert (3)  
1\> UnrealHeaderTool failed for target [ProjectName] (platform: Win64, module info: [ProjectPath]\Intermediate\Build\Win64[ProjectName]\Development\UnrealHeaderTool.manifest).  
\*\*

Easy workaround by not using nested multi-line comments. But very hard to track down the root cause when it happens

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_41845f4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_41845f4a](https://forums.unrealengine.com/u/anonymous_user_41845f4a)\
**Post date:** [March 14, 2016, 7:49pm UTC](https://forums.unrealengine.com/t/bug-report-unreal-header-tool-parsing-breaks-on-multi-line-c-comments/350300/2 "2016-03-14T19:49:29Z")

</div>

Hello scamp,

Thank you for reporting this issue. It seems that this only occurs when multiple UClasses are being declared in the same header file and the nested comments are being used, such as in your reproduction case. I’ve placed a bug in for the issue under the number UE-28400. I’ll be sure to let you know when any updates are made to the bug in the future.

Have a nice day!
