Description

Using nested comments when also declaring a second UClass in the same header file causes the UHT to have issues when parsing, resulting in a crash of UHT.

Steps to Reproduce
  1. Create a new code project
  2. Add a C++ class based off the Actor class
  3. Inside of the class declaration in the .h file, add the following lines:
    /*
    /*
    */
    
  4. Below the class declaration, add the following lines:
    UCLASS()
    class PROJECTNAMEHERE_API UThisClassIsDetectedAsExpected : public UObject
    {
    	GENERATED_BODY()
    };
    

    Where PROJECTNAMEHERE matches your project name in all caps

  5. Attempt to compile the project
    Result: UHT crashes
    Expected: UHT should be able to parse this correctly.

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

0
Login to Vote

Fixed
Fix Commit16734161
CreatedMar 14, 2016
ResolvedJul 23, 2021
UpdatedJul 26, 2021
View Jira Issue