5.6 doesn't compile on macOS

Compilation on macOS 15.5 (24F74) and XCode Version 16.2 (16C5032a) fails with the following errors:

UObjectGlobals.h(738,43): Error : ‘auto’ not allowed in function prototype

738 | constexpr static inline uint32 BuildMask(auto… Types)

UObjectGlobals.h(738,47): Error : type ‘int’ of function parameter pack does not contain any unexpanded parameter packs

738 | constexpr static inline uint32 BuildMask(auto… Types)

UObjectGlobals.h(740,15): Error : pack expansion does not contain any unexpanded parameter packs

740 | return (0 | … | BuildMask(Types));

SceneComponent.h(271,40): Error : default member initializer for bit-field is a C++20 extension [-Werror,-Wc++20-extensions]

271 | uint8 bHasGroupedMoveThisFrame : 1 = false;

And just out of interest I also downloaded XCode16.4 and tried to build from scratch (deleting Intermediate, cleaning e.t.c). I ended up getting the exact same errors.

Hi Daniel,

Can you attach your full log after the compilation fails? We bumped the minimum C++ version up to C++20 in the 5.6 release, do you have any modules that might be manually set to use an older version in their build.cs files?

Best,

Cody