It compiles successfully, but it crashes when you try to run it. This issue does not occur on GCC. It may be an upstream bug, see https://github.com/hyprwm/Hyprland/issues/7508
Closing as this is fixed in latest stable version and the affected version has been treecleaned.