Description

When declaring a delegate that takes another delegate as the variable type for one of its parameters, UHT will crash when attempting to compile the code.

Steps to Reproduce
  1. Open UE4 Editor (any project)
  2. Add code to project based on Actor (MyActor)
  3. Copy the following into MyActor.h:
    DECLARE_DYNAMIC_DELEGATE_OneParam(FRegularDelegate, int32, SomeArgument);
    DECLARE_DYNAMIC_DELEGATE_OneParam(FDelegateWithDelegateParam, FRegularDelegate const &, RegularDelegate);
    
  4. Compile

Result:
Unreal Header Generation Tool crashes shortly after the compile process starts.

Expected:
Declaring a delegate with another delegate as a parameter compiles and can be used.

Repro Rate:
3/3

Have Comments or More Details?

Head over to the existingAnswerHub thread and let us know what's up.

0
Login to Vote

Fixed
ComponentCore
Affects Versions4.11
Target Fix4.11
Fix Commit2919908
Main Commit2941042
Release Commit2919908
CreatedMar 22, 2016
ResolvedMar 23, 2016
UpdatedFeb 5, 2017